ITeye博客

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

小网客 · 2018-11-28 18:05 · DB · 数据库 · Markdown

需求:

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

实现:

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。