mysql 统计数据库中表的数量

SELECT count(*) TABLES, table_schema

FROM information_schema.TABLES   

WHERE table_schema = '__你的数据库名称__'

GROUP BY table_schema; 

猜你喜欢

转载自blog.csdn.net/july_young/article/details/82347585