MySQL自增长不生效坑

MySQL自增长不生效

明明是设置了自增长但是为什么不生效呢?
原因是设置了属性attributes为unsigned
在这里插入图片描述
把属性attributes改为空就解决了

需要注意的是使用navicat工具是查看不到attributes属性的,我这里是使用phpmyadmin来查看的。

猜你喜欢

转载自blog.csdn.net/qq_42894991/article/details/120634683
今日推荐