[英]Why is there a MySQL Syntax Error (java)?
Error: [14:39:52] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'integer)' at line 1
错误: [14:39:52] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'integer)' at line 1
[14:39:52] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'integer)' at line 1
The codeline of the error: MySQL.update("CREATE TABLE IF NOT EXISTS kititems"(kit varchar(32),item varchar(32),index integer)");
错误代码行: MySQL.update("CREATE TABLE IF NOT EXISTS kititems"(kit varchar(32),item varchar(32),index integer)");
please help me请帮我
不要使用“索引”作为列名。
I think "index" is a reserved word.我认为“索引”是一个保留字。 Try another name.试试另一个名字。 Also, there is a " after kititems that should not be there.此外,在 kititems 之后有一个“不应该在那里”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.