查看和修改表的auto_increment

表的基本信息都保存在information_schema数据库的tables表中

select auto_increment from information_schema.tables where table_schema='db name' and table_name='table name';
alter table table_name auto_increment=new value

猜你喜欢

转载自www.cnblogs.com/bibiafa/p/9184195.html