Redrock Postgres 搜索 英文
版本: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17

35.9. check_constraints #

视图 check_constraints 包含当前启用的角色所拥有的所有检查约束,它们可根据表或域定义。(表或域的所有者为该约束的所有者。)

SQL 标准将非空约束视为具有 CHECK (column_name IS NOT NULL) 表达式的检查约束。因此,非空约束也包含在此处且没有单独的视图。

表 35.7. check_constraints

列类型

说明

constraint_catalog sql_identifier

包含约束的数据库名称(始终为当前数据库)

constraint_schema sql_identifier

包含约束的架构名称

constraint_name sql_identifier

约束名称

check_clause character_data

检查约束的检查表达式