mysql解决方法 ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it m

版权声明:图文并茂的微信小程序教程!欢迎转载,请保留作者名字和链接;商业合作请联系子恒老师助理 QQ : 2334512685 https://blog.csdn.net/towtotow/article/details/83035116

使用mysql开发,
创建表时,
出现下面的错误提示

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

原因是缺少主键。

解决方法也很简单,
只要你添加一个主键即可,
类似下面的代码:

PRIMARY KEY (`id`)

猛击这里
观看子恒老师《小程序开发入门

猜你喜欢

转载自blog.csdn.net/towtotow/article/details/83035116