mysql語句錯誤(更新中)

Error Code: 1063. Incorrect column specifier for column 'username'

這是因爲:

auto_increment columns must be integer type (TINYINT, SMALLINT, INTEGER, or BIGINT)

自動增長的主鍵應該使用整型,把auto_increment去掉就可以了。


mysql清除table數據的sql語句:truncate table stduents;



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章