高效查询mysql表的总记录数

Posted LightingLYG

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了高效查询mysql表的总记录数相关的知识,希望对你有一定的参考价值。

use information_schema;
select table_name,table_rows from tables  where TABLE_SCHEMA = ' db_name' and table_name=' table_nameorder by table_rows desc;

以上是关于高效查询mysql表的总记录数的主要内容,如果未能解决你的问题,请参考以下文章