mysql查询所有表数据大小

mysql查询所有表空间大小

 

select table_name,table_rows,data_length+index_length,
concat(round((data_length+index_length)/1024/1024/1024,2),'GB')
data from information_schema.tables where table_schema='db' order by data desc

 

 

posted @ 2021-01-28 09:33  李德东  阅读(852)  评论(0编辑  收藏  举报