MySQL中查看某數據庫大小及表大小

查看指定表的大小 select concat(round(sum(DATA_LENGTH/1024/1024),2),‘MB’) as data from information_schema.TABLES where table_schema=‘庫名’ and table_name=‘表名’; 查看指定數據庫的大小 select concat(round(sum(DATA_LENGTH/1024
相關文章
相關標籤/搜索