Mysql 查询数据库数据量

我不是女神ヾ 2022-12-27 08:43 283阅读 0赞

Mysql查询数据库数据量

  1. SELECT
  2. table_name AS '表名',
  3. table_rows AS '记录数',
  4. TRUNCATE (data_length / 1024 / 1024, 2) AS '数据容量(MB)',
  5. TRUNCATE (index_length / 1024 / 1024, 2) AS '索引容量(MB)'
  6. FROM
  7. information_schema. TABLES
  8. WHERE
  9. table_schema = 'ei_qs_study'
  10. ORDER BY
  11. table_rows DESC;

发表评论

表情:
评论列表 (有 0 条评论,283人围观)

还没有评论,来说两句吧...

相关阅读