這個(gè)錯(cuò)誤消息 "(1075) Incorrect table definition; there can be only one auto column and it must be defined as a key" 是由于在修改表結(jié)構(gòu)時(shí)存在問題。在MySQL中,當(dāng)你使用AUTO_INCREMENT關(guān)鍵字定義一個(gè)自增列時(shí),這個(gè)列必須同時(shí)被定義為表的主鍵(Primary Key)或唯一鍵(Unique Key)。