hibernate自动建表出现的问题

报错信息是:
21:36:15,606 ERROR SchemaUpdate:212 - Unsuccessful: create table tb_articles (id bigint not null auto_increment, title varchar(255), content varchar(255), type integer, from varchar(255), postTime datetime, readTimes integer, primary key (id)) ENGINE=InnoDB
21:36:15,608 ERROR SchemaUpdate: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 ‘from varchar(255), postTime datetime, readTimes integer, primary key (id)) ENGIN’ at line 1

最后发现其他别的都没有错,是一个变量的名字是from,没想到这个也是关键字

你可能感兴趣的:(Hibernate)