Mysql语法错误无法搞清楚

时间:2013-11-24 03:33:53

标签: mysql sql syntax syntax-error

我是mysql的新手。 (我真的做过的第一件事)并且无法弄清楚我的语法错误:

INSERT INTO `nationz_clans` (verified, open, name, friendly_fire, registered, lastUsed, packedAllies, packedEnemies, packedMembers, description, balance) VALUES ( 1,'0,'testing',0,'1385263412958','1385263412958','','','','','0.0');

错误:

Error at SQL INSERT Query: 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 'testing',0,'1385263412958','1385263412958','','','','','0.0')' at line 1

谢谢!

2 个答案:

答案 0 :(得分:2)

零后的单引号?

答案 1 :(得分:1)

删除此单引号:

...
VALUES ( 1,'0,'testing',0,'1385263412958','1385263412958','','','','','0.0');
           ^