1. 程式人生 > >check the manual that corresponds to your MySQL server version for the right syntax to use near '..'

check the manual that corresponds to your MySQL server version for the right syntax to use near '..'

[School InFormatization -->]-->ERROR{SchemaUpdate.java:212}-Unsuccessful: create table group (id bigint not null auto_increment, createTime datetime, updateTime datetime, primary key (id)) ENGINE=InnoDB
  [School InFormatization -->]-->ERROR{SchemaUpdate.java:213}-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 (
        id bigint not null auto_increment,
        createTime datetime,

' at line 1

原因是因為group是關鍵字屬性,group換個名字後就好了。

一定要記住這一點,關鍵字是不能做表名的!!!