【BUG日记】 MySQL设计表数据时,1075 - Incorrect table definition; there can be only one auto column and ...

【日期】: 2020/4/12

【问题】: 在用Nav连接MySQL数据库,创建表数据时,出现 1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key.

【原因】: 自动递增的字段必须是主键

【如何发现】: 翻译、分析了这段话

【如何修复】: 把该字段设置成主键

【总结】: 需要多了解数据库设计表。

发布了34 篇原创文章 · 获赞 13 · 访问量 531

猜你喜欢

转载自blog.csdn.net/qq_43263647/article/details/105469553