SELECT
COUNT
(*) TABLES, table_schema
FROM
information_schema.TABLES
WHERE
table_schema =
‘dbname‘
GROUP
BY
table_schema;
dbname是数据库的名称
时间: 2024-11-03 22:46:13
SELECT
COUNT
(*) TABLES, table_schema
FROM
information_schema.TABLES
WHERE
table_schema =
‘dbname‘
GROUP
BY
table_schema;
dbname是数据库的名称