Re: [SQL ] MYSQL的auto_increment

看板Database (資料庫)作者 (:))時間18年前 (2007/10/01 12:57), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #1707ut0j (Database)
討論串 (同標題文章)
文章代碼(AID): #1707ut0j (Database)