在添加主鍵 自動編號那里報錯
?alter table users add column id smallint unsigned primary auto_increment;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'auto_increment' at line 1
2017-04-25
感覺你少了一個KEY啊 ? 主鍵不是 PRIMARY KEY嗎
2017-09-23
少了(id)吧