修改表的自增id的当前值

alter table tablename auto_increment=1000;

一般与查询表目前最大id一起连用

alter table tablename auto_increment=select max(id) from tablename;

猜你喜欢

转载自blog.csdn.net/huangwei2014/article/details/82345480