mysql查询表的当前ID 自动增加id后

mysql函数语句 “show table status”,可以获取当前数据库里的所有表的属性等信息其中mysql获取指定表当前自增id值(Auto_increment)方法有两种,

1、show table status like ‘TableName’

2、show table status where Name =’TableName’

3、 alter table tablename auto_increment=0; //只能修改比目前的大才生效。

原文地址:https://www.cnblogs.com/rspb/p/4147952.html