从access迁移数据过来后,想增加一个自增字段,却提示无法添加,出错描述如下,经过查询,一个网站上给出了解决方法。
Incorrect table definition; there can be only one auto column and it must be defined as a key
先取消掉以前的主键,然后将自增的字段设为 个主键,然后在设置原来的主键,记得,次序很重要,自增的需要 是一个字段。