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; //只能修改比目前的大才生效。
posted on 2014-12-06 10:34 renshaoping 阅读(483) 评论(0) 收藏 举报
浙公网安备 33010602011771号