您的位置:首页 > 数据库

一些SQL语句的收集

2016-01-06 00:00 351 查看
---Mysql查询表的容量
use information_schema;

select table_name,concat(round((data_length+index_length)/1024/1024/1024),'GB') as table_capacity,table_rows from tables where table_schema='db_name' order by table_capacity desc;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  SQL