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 = 'xxx'
group by TABLE_NAME order by data_length desc;


select count(1) sum from xxx;

相关文章:

  • 2021-08-17
  • 2021-11-29
  • 2021-11-17
  • 2021-06-19
  • 2022-01-26
猜你喜欢
  • 2021-09-04
  • 2021-11-05
  • 2021-08-31
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案