统计mysql某个数据库的表数量以及表记录数


 
 
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES   
where table_schema = '数据库名称' GROUP BY table_schema; 
 
统计MySQL中某个数据库中表记录数
use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = 'pims_ptemp' order by table_rows desc;
 
where table_schema = 你的数据库名


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM