leider meckert der compiler über diese syntax:
SQLException: Syntax error or access violation, message from server: "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 ''test'' at line 1"
SQLState: java.sql.SQLException: Syntax error or access violation, message from server: "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 ''test'' at line 1"
VendorError: Syntax error or access violation, message from server: "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 ''test'' at line 1"
wie muss ich denn variablen in einer query einbinden?
gondor(..)
Code:
if (sqldb.getResultMySQLUpdate(sqldb.setStatementMySQL(con.getConnectionMySQL()), "DELETE FROM '" + tableName_ + "' ;") != 0) {
System.out.println("ArticCell_SQL --> deleteTable --> Done");
}
SQLException: Syntax error or access violation, message from server: "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 ''test'' at line 1"
SQLState: java.sql.SQLException: Syntax error or access violation, message from server: "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 ''test'' at line 1"
VendorError: Syntax error or access violation, message from server: "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 ''test'' at line 1"
wie muss ich denn variablen in einer query einbinden?
gondor(..)