I get a SQL Sytax Error when I try to execute this code:
CREATE TABLE ? (
ID INT(255) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
`UUID` VARCHAR(36) NOT NULL
);
I use a PreparedStatement to replace the ? with a String
The Error Message:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an errorin your SQL syntax; check the manual that corresponds to your MySQL serverversion for the right syntax to use near ''95f7ed55-ab3d-46f9-bffe-72bf5780a1ec' (ID INT(255) UNSIGNED AUTO_INCREMENT PRIM' at line 1
Thanks for your help!
Identifiers may begin with a digit but unless quoted may not consist solely of digits.dev.mysql.com/doc/refman/5.0/en/identifiers.html'. Try using a backtick instead and see if this resolves it.