hello!python!

mysql 查找表的auto_increment和修改

1.查看最大的AUTO_INCREMENT

SELECT AUTO_INCREMENT from  information_schema.tables where table_schema='contract' and table_name='contract';

2.修改最大的AUTO_INCREMENT

alter table tablename auto_increment=NUMBER;
posted @ 2016-05-20 20:12  你坚持了吗  阅读(1596)  评论(0编辑  收藏  举报
hello!python!