Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

KEY_COLUMN_USAGE

Information on primary key and UNIQUE constraints belonging to the current authorization identifier, as well as the name of the corresponding columns.

This view also contains information on referential constraints belonging to the current authorization identifier, as well as the names of the referencing columns.

Column name

Data type

Contents

CONSTRAINT_CATALOG

CHAR (18)

Database name

CONSTRAINT_SCHEMA

CHAR (31)

Name of the schema to which the table
with the integrity constraint belongs

CONSTRAINT_NAME

CHAR (31)

Name of the integrity constraint

TABLE_CATALOG

CHAR (18)

Database name

TABLE_SCHEMA

CHAR (31)

Name of the schema to which the table
belongs

TABLE_NAME

CHAR (31)

Name of the table to which the integrity
constraint belongs

COLUMN_NAME

CHAR (31)

Name of a column in the integrity
constraint

ORDINAL_POSITION

SMALLINT

Position of the column in the integrity
constraint

Table 76: KEY_COLUMN_USAGE view of the INFORMATION_SCHEMA