1.獲取mysql下所有數據庫表的數量
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES GROUP BY table_schema;
2.獲取指定數據庫的表的數量
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES
WHERE table_schema = '數據庫名' GROUP BY table_schema;
1.獲取mysql下所有數據庫表的數量
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES GROUP BY table_schema;
2.獲取指定數據庫的表的數量
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES
WHERE table_schema = '數據庫名' GROUP BY table_schema;