Mysql 4.X <------
SHOW TABLE STATUS FROM [DB_NAME] LIKE '[TABLE_NAME]';
Mysql 5.X -----------
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '[DB_NAME]' AND TABLE_NAME = '[TABLE_NAME]'
2022-02-03 06:23:40
下一篇:最常用的PHP正则表达式收集整理