Mysql新增自增加主鍵列

有的時候須要對於一個Mysql數據庫表添加個自動增加主鍵,剛開始的時候使用下面的語句: alter table taskinfoconfig add column id int(10) not null auto_increment ; alter table taskinfoconfig add primary key(id); 但是在執行的時候發現報錯,信息以下: Incorrect tabl
相關文章
相關標籤/搜索