错误:
MYSQL建表 index integer报错
刚开始以为是integer类型报错,后来建表
create table mune(
id integer,
menu_index integer);
执行正常,建表:
create table mune(
id integer,
index integer);
执行失败
最后发现是index字段有问题,可能和MYSQL的索引起了冲突。
解决方法:
index/group 等字段都不能使用
在使用关系配置时不是用列名而是用属性名
在使用约束配置时不是用属性名而是用列名