SELECT COUNT(table_name) FROM information_schema.tables WHERE table_schema NOT IN ('information_schema','pg_catalog');
将给出名称(带有系统表):
SELECT table_name FROM information_schema.tables WHERE table_schema NOT IN ('information_schema','pg_catalog');
具体方案中的计数:
SELECT COUNT(table_name) FROM information_schema.tables WHERE table_schema NOT IN ('information_schema', 'pg_catalog') AND table_schema IN('schema_1', 'myschema');
计算(使用系统表):
将给出名称(带有系统表):
具体方案中的计数:
---然后你可以写
---
OR table_schema IN('schema_2', 'myschema')...
---
OR table_schema IN('schema_N', 'myschema')