postgre查询表和记录数

select relname as TABLE_NAME, reltuples as rowCounts from pg_class where relkind = 'r'
and relnamespace = (select oid from pg_namespace where nspname='public') order by rowCounts desc;

转载于:https://www.cnblogs.com/xiaoliu66007/p/11052885.html

猜你喜欢

转载自blog.csdn.net/weixin_33890526/article/details/93664555
今日推荐