課程
/數據庫
/MySQL
/與MySQL的零距離接觸
Incorrect table definition; there can be only one auto column and it must be defined as a key ? 這是什么原因呀?
2019-12-29
源自:與MySQL的零距離接觸 3-7
正在回答
auto_increment 類型的字段本身必須作為主鍵,不允許刪除該主鍵。? ?嘗試創建一個帶自增類型的字段表,看看能成功么?create table test1(id int auto_increment, username varchar(30))
舉報
本課程涵蓋全部MySQL數據庫的基礎,學習MySQL數據庫的基礎知識
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-01-04
auto_increment 類型的字段本身必須作為主鍵,不允許刪除該主鍵。? ?嘗試創建一個帶自增類型的字段表,看看能成功么?create table test1(id int auto_increment, username varchar(30))