📜  列出 postgres 中的所有约束 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.794000             🧑  作者: Mango

代码示例2
SELECT *
       FROM pg_catalog.pg_constraint con,
       pg_catalog.pg_class rel,
       pg_catalog.pg_namespace nsp
       WHERE
               rel.oid = con.conrelid
            AND nsp.oid = connamespace
               AND nsp.nspname like ''
            AND rel.relname like ''