给数据表增加字段的时候报错error 1062(23000)

给原表添加列(alter table add column)的时候报错:

error 1062(23000): duplicate entry '1218652' for key 'PRIMARY'

原因参考这两篇:

http://blog.itpub.net/28218939/viewspace-2654121/

https://www.bbsmax.com/A/GBJrlKoqd0/

https://cloud.tencent.com/developer/article/1006513

额外知识补充可以参考如下:

https://www.cnblogs.com/cchust/p/4639397.html

https://blog.csdn.net/finalkof1983/article/details/88355314

https://www.cnblogs.com/cchust/category/802863.html

https://dev.mysql.com/doc/refman/5.7/en/innodb-online-ddl-operations.html#online-ddl-column-syntax-notes

 

 

 

 

你可能感兴趣的:(一句话)