色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

mysql復雜查詢sql,mysql怎么查看表數據量占用空間的sql

傅智翔2年前19瀏覽0評論
mysql復雜查詢sql,mysql怎么查看表數據量占用空間的sql?

第一步mysql> use information_schema; 第二步mysql> select data_length,index_length -> from tables where -> table_schema='DBNAME' -> and table_name = 'TABLENAME'; 或者mysql> select concat(round(sum(data_length/1024/1024),2),'MB') as data_length_MB, -> concat(round(sum(index_length/1024/1024),2),'MB') as index_length_MB -> from tables where -> table_schema='DBNAME' -> and table_name = 'TABLENAME';