如果统计某数据库中存在多少张数据表,使用如下SQL检索语句即可:
SELECT COUNT(*) TABLES, table_schema
FROM information_schema.TABLES
WHERE table_schema = '数据库名' GROUP BY table_schema;
2021-07-19 15:54:46
如果统计某数据库中存在多少张数据表,使用如下SQL检索语句即可:
SELECT COUNT(*) TABLES, table_schema
FROM information_schema.TABLES
WHERE table_schema = '数据库名' GROUP BY table_schema;