You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

来源:互联网 发布:tt风扇控制软件 编辑:程序博客网 时间:2024/04/27 04:25
right syntax to use near 'Explain, Del) values (68, null, '????±±?‰????OK', '', '0')' at line 1

我的项目使用mysql数据库,使用的关键字,Explain

mysql中解决方案:

在hibernate配置文件中,在数据库对应的属性上加上特殊符号(~键,即键盘Esc键的下方的那个键)。

SQLSERVER解决方案:

也是在hibernate配置文件中,在数据库对应的属性上加上特殊符号([ ] 键,如[Explain])。如下:

原创粉丝点击