[SQL ] MYSQL的auto_increment

看板Database作者 (小麻)時間18年前 (2007/10/01 12:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
大家好,我是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值才可以改嗎? 或是? -- ‧~*~‧~*~* ╭╮ ○ ╭─╮╭─╮╭─╮╭╮ ○ ╭─╮ With this ring, ││ ╭╮│ ┤││││ ┤│╰╮╭╮│ ┤ I give to you my promise, │└╮││├ ││ │├ ││ ││││ ┤ from this date forward you should ╰─╯╰╯╰─╯╰─╯╰┴╯╰┴╯╰╯╰─╯ not walk alone. ψcrystalclear ~*~‧~*‧‧**‧ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.127.184.34
文章代碼(AID): #170738ji (Database)
文章代碼(AID): #170738ji (Database)