select 
TABLE_NAME, 
concat(truncate(data_length/1024/1024,2),' MB') as data_size,
concat(truncate(index_length/1024/1024,2),' MB') as index_size
from information_schema.tables 
where TABLE_SCHEMA = '数据库名'
order by data_length desc;

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-11-29
  • 2021-12-12
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2021-09-04
  • 2021-10-27
  • 2022-02-18
  • 2021-11-29
  • 2022-01-26
  • 2021-06-04
相关资源
相似解决方案