统计指定数据库中表的数量,sql语句

版权声明:本文为博主原创文章,转载请注明出处。 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就是我们要指定的数据库名字。

猜你喜欢

转载自blog.csdn.net/qq_41147260/article/details/84626895
今日推荐