1、统计每张表数据量
SELECT table_name,table_rows FROM information_schema.tables WHERE table_schema='数据库名称' ORDER BY table_rows ASD;
2、统计一个库所有数据总和
SELECT sum(table_rows) FROM information_schema.tables WHERE table_schema='数据库名称';
仅供参考 有好的方案可以评论提出来 互相学习 谢谢
座右铭:控制欲望 脚踏实地