需求:
查询某固定db中所有表的记录数,然后排序
实现:
select table_name,table_rows from information_schema.tables where table_schema='yourdb' order by table_rows desc;
需求:
查询某固定db中所有表的记录数,然后排序
实现:
select table_name,table_rows from information_schema.tables where table_schema='yourdb' order by table_rows desc;