mysql统计每张表的数据量

1.每张表大概的数据量的查询方法
select table_name,table_rows from information_schema.tables where TABLE_SCHEMA='数据库名称' order by table_rows desc;
2.具体某张表的数据量查询方法
select count(*) from database_name.table_name;
posted @ 2022-09-26 18:53  小白521  阅读(1482)  评论(0编辑  收藏  举报