您的位置:58编程 > PostgreSQL table_constraints

PostgreSQL table_constraints

2023-04-29 10:33

 PostgreSQL table_constraints

视图table_constraints包含属于特定表的所有约束,这些表要满足的条件是:当前用户拥有表或者是当前用户在表上具有某种除SELECT之外的特权。

表 36.46. table_constraints

列类型

描述

constraint_catalog sql_identifier

包含该约束的数据库名称(总是当前数据库)

constraint_schema sql_identifier

包含该约束的模式名称

constraint_name sql_identifier

约束名称

table_catalog sql_identifier

包含该表的数据库名称(总是当前数据库)

table_schema sql_identifier

包含该表的模式名称

table_name sql_identifier

表名称

constraint_type character_data

该约束的类型:CHECKFOREIGN KEYPRIMARY KEYUNIQUE

is_deferrable yes_or_no

如果该约束是可延迟的,则为YES,否则为NO

initially_deferred yes_or_no

如果该约束是可延迟的并且是初始已被延迟,则为YES,否则为NO

enforced yes_or_no

适用于一种PostgreSQL中不可用的特性(当前总是YES


阅读全文
以上是58编程为你收集整理的 PostgreSQL table_constraints全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 58编程 58biancheng.com 版权所有 联系我们
桂ICP备12005667号-32 Powered by CMS