高效查询mysql表的总记录数
mysql mariadb    2017-07-19 21:58:12    873   
lightingfire   mysql mariadb
use information_schema;

select table_name,table_rows from tables 
where TABLE_SCHEMA = 'db_name' and table_name='table_name' order by table_rows desc;
 
 

 

by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
mail: liuyg#liuyingguang.cn
博主首页(防止爬虫):http://blog.liuyingguang.cn
OpenBI问答社区:http://openbi.liuyingguang.cn/

Pre: Apache Tomcat配置虚拟主机的方法(不同域名绑定同一IP访问不同网站)

Next: API网关(TYK)设置流量控制


Table of content