首先可以看一下数据大小、表大小。
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') as data from information_schema.tables
where table_schema = '数据库名'
AND table_name='表名称';
首先可以看一下数据大小、表大小。
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') as data from information_schema.tables
where table_schema = '数据库名'
AND table_name='表名称';