Zkuste tento......
SELECT TABLE_NAME,MAX(TABLE_ROWS)
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = "DB_Name";
NEBO
zkuste prosím následující dva dotazy pro skutečný výsledek.
dotaz 1:
SELECT CONCAT('SELECT COUNT(*) as cnt FROM ', table_name, ' union all')
FROM information_schema.tables WHERE table_schema = 'your_db_name';
dotaz 2:
select max(cnt) from (paste the result of first query and remove
last union all keyword) as tmptable;