zl程序教程

您现在的位置是:首页 >  其它

当前栏目

ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry ’1′ for key

for in Table Key Auto Duplicate ALTER entry
2023-09-14 08:59:25 时间

问题:表中存在主键为0的一条数据。

解决:把主键为0的这条数据的值(主键id=0)改为其他不重复的值即可。

   然后在修改自动递增。