如何在PostgreSQL中列出所有模式?

前端之家收集整理的这篇文章主要介绍了如何在PostgreSQL中列出所有模式?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
使用Postgresql v9.1时,如何使用sql列出所有模式?

我期待的是:

SELECT something FROM pg_blah;
要列出所有模式,请使用(ANSI)标准INFORMATION_SCHEMA
select schema_name
from information_schema.schemata

手册中的更多细节:http://www.postgresql.org/docs/current/static/information-schema.html

或者:

select nspname
from pg_catalog.pg_namespace;

有关手册中pg_catalog的更多详细信息:http://www.postgresql.org/docs/current/static/catalogs.html

原文链接:https://www.f2er.com/postgresql/192372.html

猜你在找的Postgre SQL相关文章