| PostgreSQL 8.0.0 中文文档(PostgreSQL 中国制作) | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 30. 信息模式 | Fast Forward | Next |
视图 referential_constraints 包含当前数据库里 属于当前用户的某个表里所有参考(外键)约束。
Table 30-18. referential_constraints 字段
| 名字 | 数据类型 | 描述 |
|---|---|---|
| constraint_catalog | sql_identifier | 包含这个约束的数据库名字(总是当前数据库) |
| constraint_schema | sql_identifier | 包含这个约束的模式名字 |
| constraint_name | sql_identifier | 这个约束的名字 |
| unique_constraint_catalog | sql_identifier | 包含该外键约束引用的唯一或者主键约束的数据库名字(总是当前数据库) |
| unique_constraint_schema | sql_identifier | 包含该外键约束引用的唯一或者主键约束的模式名字 |
| unique_constraint_name | sql_identifier | 该外键约束引用的唯一或者主键约束的名字 |
| match_option | character_data | 该外键约束的匹配选项:FULL,PARTIAL, 或者 NONE。 |
| update_rule | character_data | 这个外键约束的更新规则:CASCADE, SET NULL,SET DEFAULT,RESTRICT, 或者 NO ACTION。 |
| delete_rule | character_data | 这个外键约束的删除规则 CASCADE,SET NULL, SET DEFAULT,RESTRICT, 或者 NO ACTION。 |