※ 引述《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