脚本如下 :
select concat(round(sum(data_length/1024/1024),2),‘MB‘) as data,table_name from information_schema.tables where table_schema=‘db_name‘ and table_name=‘table_name‘;
注:人老了,记忆不好,做个记录吧,方便以后查询。。。
mysql查询表库中表大小
时间: 2024-11-11 03:26:34
脚本如下 :
select concat(round(sum(data_length/1024/1024),2),‘MB‘) as data,table_name from information_schema.tables where table_schema=‘db_name‘ and table_name=‘table_name‘;
注:人老了,记忆不好,做个记录吧,方便以后查询。。。
mysql查询表库中表大小