| 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。 |