开始一直以为是hibernate配置原因 和 jar包等级问题等。
后来发现
Caused by: 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[color=red] 'group[/color], manageFlag, id) values ('wind', '123456', null, null, null, null, 4)' at line 1
使用了mysql的关键字group,换成其他字段即可。
后来发现
Caused by: 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[color=red] 'group[/color], manageFlag, id) values ('wind', '123456', null, null, null, null, 4)' at line 1
使用了mysql的关键字group,换成其他字段即可。
本文解决了一个具体的MySQL语法问题,即使用了关键字'group'作为字段名导致的语法错误。通过更改字段名,成功避免了这一错误。

被折叠的 条评论
为什么被折叠?



