Опитайте този......
SELECT TABLE_NAME,MAX(TABLE_ROWS)
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = "DB_Name";
ИЛИ
моля, опитайте следните две заявки за действителен резултат.
заявка 1:
SELECT CONCAT('SELECT COUNT(*) as cnt FROM ', table_name, ' union all')
FROM information_schema.tables WHERE table_schema = 'your_db_name';
заявка 2:
select max(cnt) from (paste the result of first query and remove
last union all keyword) as tmptable;