Code: Select all
String tempName = "temp-" + tempID++;
db.executeUpdate("INSERT INTO account SET username=?, password='', email=''", new Object[]{tempName});
It's like it isn't turning the ? into the symbols at all.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, password='', email=''' at line 1
executeQuery() does work... this is specifically executeUpdate.