Mysql 4.X ?? ------
SHOW TABLE STATUS FROM [DB_NAME] LIKE ‘[TABLE_NAME]‘;
=> ???? ???? Auto_increment ??? ??
Mysql 5.X -----------
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = ‘[DB_NAME]‘ AND TABLE_NAME = ‘[TABLE_NAME]‘
时间: 2024-12-05 12:33:12