Coba yang ini......
SELECT TABLE_NAME,MAX(TABLE_ROWS)
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = "DB_Name";
ATAU
silakan coba dua pertanyaan berikut untuk hasil yang sebenarnya.
kueri 1:
SELECT CONCAT('SELECT COUNT(*) as cnt FROM ', table_name, ' union all')
FROM information_schema.tables WHERE table_schema = 'your_db_name';
kueri 2:
select max(cnt) from (paste the result of first query and remove
last union all keyword) as tmptable;