Mysql查看所有表的数据量

##查看所有表信息

SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'schema'

##查看各个表数据量

SELECT table_name,table_rows FROM information_schema.tables WHERE TABLE_SCHEMA = 'schema' ORDER BY table_rows DESC;

posted @ 2021-12-17 14:50  up~up  阅读(547)  评论(0编辑  收藏  举报