脚本如下 :
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‘;
注:人老了,记忆不好,做个记录吧,方便以后查询。。。
2022-09-13 22:12:50
脚本如下 :
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‘;
注:人老了,记忆不好,做个记录吧,方便以后查询。。。
下一篇:去掉引号——环境变量