作者ruby0104 (:))
看板Database
标题Re: [SQL ] MYSQL的auto_increment
时间Mon Oct 1 12:57:26 2007
※ 引述《LisaShie (小麻)》之铭言:
: 大家好,我是mysql新手
: 有关 auto_increment的设定想请问大家
: 我有个栏位已经设成int了!
: 要怎麽设定auto_increment呢?
: 我在附加里选好执行的时候
: 显示
: #1075 - Incorrect table definition; there can be
: only one auto column and it must be defined as a key
: 意思是我要设定key值才可以改吗?
: 或是?
我对MySQL不熟... 不过 从字面上来看...
auto_increment 一个table只能有一个 而且还必须是primary key
所以有可能你的那个column没有设定成primary key
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 71.132.207.153