alter table dw_test drop id;//删除原来的主键值 alter table dw_test add id int not null primary key auto_increment first;//重新从1开始编号,使它连续
mysql的表的主键重新从1开始连续
原文:https://www.cnblogs.com/niusdtz/p/13259807.html