【发布时间】:2011-07-16 04:08:44
【问题描述】:
我有桌子,我试着添加
`id` int(11) NOT NULL auto_increment,
到桌子,但我得到了
ERROR 1075: Incorrect table definition; There can only be one auto column and it must be defined as a key
所以问题是:
- 如何找到哪一个是关键列
- 我可以毫无问题地更改它并添加新的 ID 字段(使用自动增量)吗?
【问题讨论】:
-
发布
show create table <tablename>的输出
标签: mysql sql mysql-error-1075