You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
(2012-08-29 15:31:00)
标签:
it |
分类: database |
利用hibernate做添加功能时候,报错:
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 'GROUP, ADDUSERID, ADDUSERNAME, ADDTRUENAME, ADDTIME, STATE, ID) values ('7d0e4fe' at line 1
看了下程序没问题,看错误总是报在GROUP这,最后查了下 才发现 group 是mysql关键字,不能作为表字段
将表中 group 这个字段换成别的名称就可以了。