lewisat

mysql查询表信息及数据量

mysql查询表信息及数据量

##查看所有表信息
SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = \'test\'
##查看各个表数据量
SELECT table_name,table_rows FROM information_schema.tables WHERE TABLE_SCHEMA = \'test\' ORDER BY table_rows DESC;
##查询schema的相关信息
SELECT * FROM information_schema.tables WHERE TABLE_SCHEMA = \'test\' AND table_rows >0 ORDER BY table_rows DESC;

  

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2021-05-23
  • 2021-12-08
  • 2021-11-16
  • 2021-11-12
  • 2021-11-16
  • 2021-06-05
  • 2021-09-25
猜你喜欢
  • 2021-11-12
  • 2021-12-15
  • 2021-11-17
  • 2021-11-17
  • 2021-10-21
  • 2021-08-16
  • 2021-11-26
相关资源
相似解决方案