查询mysql数据库表的内容占用的存储
select table_name, concat(round(sum(data_length/1024/1024),2),'MB') as data from information_schema.tables where table_schema='sjfx' group by table_name order by round(sum(data_length/1024/1024),2) desc;
Tips:上一条语句中 sjfx是数据库的名称,记得换成自己的数据库名称。
 
                     
                    
                 
                    
                 
                
            
         
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号