首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

查询表的大小话语

2013-03-19 
查询表的大小语句select table_schema,table_name,engine,row_format as format, table_rows, avg_row_len

查询表的大小语句

 select table_schema,table_name,engine,row_format as format, table_rows, avg_row_length as avg_row,ROUND((data_length+index_length)/1024/1024,2) as total_mb,ROUND((data_length)/1024/1024,2) as data_mb,ROUND((index_length)/1024/1024,2) as index_mb,CURDATE() as today from information_schema.tables where table_schema not in('mysql','information_schema','performance_schema') order by table_schema,table_name;

热点排行