Mysql查询某database的所有表的记录数

需求:

查询某固定db中所有表的记录数,然后排序

实现:

select table_name,table_rows from information_schema.tables  where table_schema='yourdb' order by table_rows desc;

猜你喜欢

转载自snv.iteye.com/blog/2434454