01-check the manual that corresponds to your MySQL server version for the right syntax

来源:互联网 发布:瑜伽自己在家练 知乎 编辑:程序博客网 时间:2024/05/29 10:05

本文讲的是出现这个错误的一种情况!

Myeclipse抛出异常:

check the manual that corresponds to your MySQL server version for the right syntax to use near 'READ, CREATE, UPDATE, DELETE, EXECUTE) values ('SAP', 4, 'userMaintenance', 0, 0' at line 1

并且使用自动创建表的时候不能创建。

大致的意思就是:near 'READ, CREATE, UPDATE, DELETE, EXECUTE) values ('SAP', 4, 'userMaintenance', 0, 0')

这句话的语法有错误.

 

引起的原因:

原因是因为实体类中创建的字段为系统的关键字。

 

解决方法:

将实体类中字段的名称修改一下。