ERROR: HHH000388: Unsuccessful: create table right (right_code varchar(255) not null auto_increment,

ERROR: HHH000388: Unsuccessful: create table right (right_code varchar(255) not null auto_increment, right_desc varchar(255), right_name varchar(255), right_parent_code varchar(255), right_type varchar(255), right_url varchar(255), primary key (right_code)) ENGINE=InnoDB
九月 07, 2015 6:22:44 下午 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
ERROR: 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 'right (right_code varchar(255) not null auto_increment, right_desc varchar(255),' at line 1

解决:在MySQL中'right'是关键字,不能有与之相同的表名。

你可能感兴趣的:(ERROR: HHH000388: Unsuccessful: create table right (right_code varchar(255) not null auto_increment,)