您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-14 03:28

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

1、show table status like ‘TableName’

2、show table status where Name =’TableName’

热门排行

今日推荐

热门手游