2 35.18. constraint_column_usage #
4 The view constraint_column_usage identifies all columns in the current
5 database that are used by some constraint. Only those columns are shown
6 that are contained in a table owned by a currently enabled role. For a
7 check constraint, this view identifies the columns that are used in the
8 check expression. For a not-null constraint, this view identifies the
9 column that the constraint is defined on. For a foreign key constraint,
10 this view identifies the columns that the foreign key references. For a
11 unique or primary key constraint, this view identifies the constrained
14 Table 35.16. constraint_column_usage Columns
20 table_catalog sql_identifier
22 Name of the database that contains the table that contains the column
23 that is used by some constraint (always the current database)
25 table_schema sql_identifier
27 Name of the schema that contains the table that contains the column
28 that is used by some constraint
30 table_name sql_identifier
32 Name of the table that contains the column that is used by some
35 column_name sql_identifier
37 Name of the column that is used by some constraint
39 constraint_catalog sql_identifier
41 Name of the database that contains the constraint (always the current
44 constraint_schema sql_identifier
46 Name of the schema that contains the constraint
48 constraint_name sql_identifier
50 Name of the constraint