關(guān)于主鍵約束刪除失敗的問題
Incorrect table definition; there can be only one auto column and it must be defined as a key ? 這是什么原因呀?
Incorrect table definition; there can be only one auto column and it must be defined as a key ? 這是什么原因呀?
2019-12-29
舉報(bào)
2020-01-04
auto_increment 類型的字段本身必須作為主鍵,不允許刪除該主鍵。? ?嘗試創(chuàng)建一個帶自增類型的字段表,看看能成功么?create table test1(id int auto_increment, username varchar(30))