ituser - 小小IT人遨游大大IT界

MySQL查询统计数据库中所有数据表的数据条数

2020-12-22 11:07:51 318次浏览


select table_name,table_rows from information_schema.tables where TABLE_SCHEMA = '数据库名称' order by table_rows desc;
select sum(table_rows) from information_schema.tables where TABLE_SCHEMA = '数据库名称' order by table_rows desc;
说明

所有内容来及个人经验和互联网摘取,如有雷同纯属巧合,如有冒犯,欢迎留言,分享即快乐,感谢互联网中每一位懂得分享的ituser!QQ群:127331971(备注:ituser.cn)