SELECT
COUNT
(*) TABLES, table_schema
FROM
information_schema.TABLES
WHERE
table_schema =
'dbname'
GROUP
BY
table_schema;
dbname是数据库的名称
SELECT
COUNT
(*) TABLES, table_schema
FROM
information_schema.TABLES
WHERE
table_schema =
'dbname'
GROUP
BY
table_schema;
dbname是数据库的名称