PostgreSQL-视图-01-查询表信息视图-tab_info_v
-- PostgreSQL查询表信息视图tab_info_v
CREATE VIEW tab_info_v AS WITH schemainfo AS (
SELECT pg_namespace.oid,
pg_namespace.nspname
FROM pg_namespace
), tbinfo
PostgreSQL-视图-01-查询表信息视图-tab_info_v
-- PostgreSQL查询表信息视图tab_info_v
CREATE VIEW tab_info_v AS WITH schemainfo AS (
SELECT pg_namespace.oid,
pg_namespace.nspname
FROM pg_namespace
), tbinfo