首页 > 其他 > 详细

ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key

时间:2019-04-23 21:05:19      阅读:122      评论:0      收藏:0      [点我收藏+]

约束字段为自动增长,被约束的字段必须同时被key约束

没有设置成primary key 时,会报错。

技术分享图片

加上primary key 则设置成功。

技术分享图片

 

ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key

原文:https://www.cnblogs.com/Zhao159461/p/10758868.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!