版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_41147260/article/details/84626895
SELECT
COUNT(*) TABLES,
table_schema
FROM
information_schema. TABLES
WHERE
table_schema = 'bigdatashare'
GROUP BY
table_schema;
我们这里的bigdatashare就是我们要指定的数据库名字。