Hallo,
Morgen.
nur ein Gedanke…
DELETE * FROM tab WHERE Zeit=MIN(Zeit)
Hallo,
ich hab das grad mal versucht aber so geht es nicht.
Da ich mir so net weiter helfen konnte habe ich es nun etwas umständlich gelöst aber wäre troßdem dankbar für ne „vernünftige“ Lösung.
public void resetTabelle(Object object) throws SQLException{
Statement stmt = con.createStatement();
String a = object.toString();
int b = Integer.parseInt(a);
String command = "DELETE FROM Highscore WHERE Nummer = "+b;
int rs2=stmt.executeUpdate(command);
stmt.close();
}
object ist das element was gelöscht werden muss…