PostgreSQL 查看数据库表数量

SELECT count(tablename) FROM pg_tables WHERE tablename NOT LIKE 'pg%' AND tablename NOT LIKE 'sql_%';

你可能感兴趣的:(postgresql)