原文: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. 報錯原因:某表從一個環境復制到另外一個環境,導致該表中id主鍵丟失。 解決辦法: 根據提示信息:設為自增的字段必須是主鍵。把該表清空后,先設置id為主鍵,后設置自增。 ...

2019-06-20 20:42 0 878 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM