查询mysql所有表的大小_MySQL
来源:懂视网
责编:小采
时间:2020-11-09 19:24:27
查询mysql所有表的大小_MySQL
查询mysql所有表的大小_MySQL:先用 use information_schema; SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc; 哪些表数据量大就一目了然了噢
导读查询mysql所有表的大小_MySQL:先用 use information_schema; SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc; 哪些表数据量大就一目了然了噢
先用
SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc;
哪些表数据量大就一目了然了噢
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
查询mysql所有表的大小_MySQL
查询mysql所有表的大小_MySQL:先用 use information_schema; SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc; 哪些表数据量大就一目了然了噢