在设置字段自动增长时,报错“Incorrect table definition; there can be only one auto column and it must be defined as a key”。
原因:未将字段设置为主键。
解决办法:"alter table 表名 modify 字段 类型(长度) primary key;"
在设置字段自动增长时,报错“Incorrect table definition; there can be only one auto column and it must be defined as a key”。
原因:未将字段设置为主键。
解决办法:"alter table 表名 modify 字段 类型(长度) primary key;"