↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4
历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.

34.48. table_constraints #

视图table_constraints包含当前用户拥有的或对其有某些非 SELECT 权限的表的所有约束。

表 34.46. table_constraints 列

名称数据类型 描述
constraint_catalogsql_identifier 包含该约束的数据库名称(总是当前数据库)
constraint_schemasql_identifier 包含该约束的模式名称
constraint_namesql_identifier 约束的名称
table_catalogsql_identifier 包含该表的数据库名称(总是当前数据库)
table_schemasql_identifier 包含该表的模式名称
table_namesql_identifier 表的名称
constraint_typecharacter_data 约束类型:CHECK(包括非空约束)、FOREIGN KEY、PRIMARY KEY 或 UNIQUE
is_deferrableyes_or_no 如果该约束是可延迟的,则为YES,否则为NO
initially_deferredyes_or_no 如果该约束是可延迟的且初始就被延迟,则为YES,否则为NO

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.