mysql快速统计库中表数据

前言:

  表中数据量如果非常大,而且不需要非常精确的情况下,可以使用如下sql,直接统计:

use information_schema;
select table_name,table_rows from tables  where TABLE_SCHEMA = '数据库名称'  order by table_rows desc;

 

posted @ 2020-09-28 14:18  小雨淅淅o0  阅读(610)  评论(0编辑  收藏  举报