SELECT
CONCAT(table_schema,'.',table_name) AS 'TABLE_NAME',
CONCAT(ROUND(table_rows / 1000000, 4),'M') AS 'ROW_SIZE',
CONCAT(ROUND(data_length / (1024 * 1024),2),'M') AS 'DATA_SIZE',
CONCAT(ROUND(index_length / (1024 * 1024),2),'M') AS 'INDEX_SIZE',
CONCAT(ROUND((data_length + index_length) / (1024 * 1024),2),'M') AS 'TOTAL_SIZE'
FROM
information_schema. TABLES
WHERE
table_schema = 'bootdo'
ORDER BY 3 desc;

 

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2021-06-26
  • 2021-07-08
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2021-11-05
相关资源
相似解决方案