バージョンごとのドキュメント一覧

37.34. referential_constraints #

The view <literal>referential_constraints</literal> contains all referential (foreign key) constraints in the current database. Only those constraints are shown for which the current user has write access to the referencing table (by way of being the owner or having some privilege other than <literal>SELECT</literal>). referential_constraintsビューには、現在のデータベース内にある全ての参照(外部キー)制約があります。現在のユーザが、参照テーブルに(所有者、またはSELECT以外の何らかの権限を持つという方法で)書き込みアクセスを持つと言う事でこれらの制約は示されます。

表37.32 referential_constraintsの列

<title><structname>referential_constraints</structname> Columns</title>

Column Type 列 型

Description 説明

constraint_catalog sql_identifier

Name of the database containing the constraint (always the current database) 制約が含まれるデータベースの名前です(常に現在のデータベースです)。

constraint_schema sql_identifier

Name of the schema containing the constraint 制約が含まれるスキーマの名前です。

constraint_name sql_identifier

Name of the constraint 制約の名前です。

unique_constraint_catalog sql_identifier

Name of the database that contains the unique or primary key constraint that the foreign key constraint references (always the current database) 外部キー制約が参照する一意性制約、もしくは主キー制約を持つデータベースの名前です (常に現在のデータベースです)。

unique_constraint_schema sql_identifier

Name of the schema that contains the unique or primary key constraint that the foreign key constraint references 外部キー制約が参照する一意性制約、もしくは主キー制約を持つスキーマの名前です。

unique_constraint_name sql_identifier

Name of the unique or primary key constraint that the foreign key constraint references 外部キー制約が参照する一意性制約、もしくは主キー制約の名前です。

match_option character_data

Match option of the foreign key constraint: <literal>FULL</literal>, <literal>PARTIAL</literal>, or <literal>NONE</literal>. 外部キー制約の一致オプションです。 FULLPARTIALNONEのいずれかです。

update_rule character_data

Update rule of the foreign key constraint: <literal>CASCADE</literal>, <literal>SET NULL</literal>, <literal>SET DEFAULT</literal>, <literal>RESTRICT</literal>, or <literal>NO ACTION</literal>. 外部キー制約の更新規則です。 CASCADESET NULLSET DEFAULTRESTRICTNO ACTIONのいずれかです。

delete_rule character_data

Delete rule of the foreign key constraint: <literal>CASCADE</literal>, <literal>SET NULL</literal>, <literal>SET DEFAULT</literal>, <literal>RESTRICT</literal>, or <literal>NO ACTION</literal>. 外部キー制約の削除規則です。 CASCADESET NULLSET DEFAULTRESTRICTNO ACTIONのいずれかです。