PDA

查看完整版本 : MySQL 求助


jimhuang
2013-12-17, 09:09 PM
我在cPanel 檢查mySQL
發現其中一個資料表出現如下:
warning: Found row where the auto_increment column has the value 0

請問這個是什麼意思? 是什麼造成錯誤
要如何修正它?
煩請高手解惑

some
2013-12-17, 09:37 PM
auto_increment 是流水號

從1開始算, 新增一筆自動加 1, 所以不可能有數據為0, 看你設 auto_increment 是在那個欄位?

通常是數據的id 才會用流水號, 刪掉那條記錄即可