原文: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