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

37.18. constraint_column_usage #

The view <literal>constraint_column_usage</literal> identifies all columns in the current database that are used by some constraint. Only those columns are shown that are contained in a table owned by a currently enabled role. For a check constraint, this view identifies the columns that are used in the check expression. For a foreign key constraint, this view identifies the columns that the foreign key references. For a unique or primary key constraint, this view identifies the constrained columns. constraint_column_usageビューは、現在のデータベースで制約を使用する全ての列を示します。 現在有効なロールが所有するテーブル内の列のみが表示されます。 検査制約では、このビューは検査式で使用される列を示します。 外部キー制約では、このビューは外部キーを参照する列を示します。 一意性制約もしくは主キー制約では、このビューは制約される列を示します。

表37.16 constraint_column_usageの列

<title><structname>constraint_column_usage</structname> Columns</title>

Column Type 列 型

Description 説明

table_catalog sql_identifier

Name of the database that contains the table that contains the column that is used by some constraint (always the current database) ある制約で使用される列を持つデータベースの名前です (常に現在のデータベースです)。

table_schema sql_identifier

Name of the schema that contains the table that contains the column that is used by some constraint ある制約で使用される列を持つテーブルを含むスキーマの名前です。

table_name sql_identifier

Name of the table that contains the column that is used by some constraint ある制約で使用される列を持つテーブルの名前です。

column_name sql_identifier

Name of the column that is used by some constraint ある制約で使用される列の名前です。

constraint_catalog sql_identifier

Name of the database that contains the constraint (always the current database) 制約を持つデータベースの名前です(常に現在のデータベースです)。

constraint_schema sql_identifier

Name of the schema that contains the constraint 制約を持つスキーマの名前です。

constraint_name sql_identifier

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