0
我想查询约束条款以及架构和表格在postgres中。我已经尽可能将information_schema.check_constraints
确定为有用的表格。问题是,这样做查询约束条款与架构和表(Postgres)
select *
from information_schema.check_constraints
结果constraint_catalog
,constraint_schema
,constraint_name
,check_clause
。 check_clause
是我想要的,这张表也给了我constraint_schema
。但是,它并没有给出这个约束被定义的表。在我当前的数据库中,我在同一个模式中的不同表上定义了相同的名称(这本身也许是糟糕的设计,但我需要处理)。是否有可能在这里获得表名?