select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') rongliang from information_schema.tables
where table_schema='数据库名称';
查询mysql存储数据容量的大小
最新推荐文章于 2024-07-18 04:03:05 发布
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') rongliang from information_schema.tables
where table_schema='数据库名称';