WARUM geht das???:
ABER das nich???:
DANKE [/code]
Code:
PreparedStatement pstatement = null;
pstatement = connection.prepareStatement("SELECT * FROM meldung_table ORDER BY "+sortby+"");
pstatement.execute();
ResultSet resultset = pstatement.getResultSet();
ABER das nich???:
Code:
PreparedStatement pstatement = null;
pstatement = connection.prepareStatement("SELECT * FROM meldung_table ORDER BY ?");
pstatement.setString(1, sortby);
pstatement.execute();
ResultSet resultset = pstatement.getResultSet();
DANKE [/code]