Updated on 2024-05-07 GMT+08:00

MY_CONSTRAINTS

MY_CONSTRAINTS displays table constraint information accessible to the current user. This view exists in both PG_CATALOG and SYS schema.

Table 1 MY_CONSTRAINTS columns

Name

Type

Description

owner

character varyiny(64)

Constraint creator.

constraint_name

vcharacter varying(64)

Constraint name.

constraint_type

text

Constraint type.
  • c: check constraint.
  • f: foreign key constraint.
  • p: primary key constraint.
  • u: unique constraint.

table_name

character varying(64)

Name of a constraint-related table.

index_owner

character varying(64)

Owner of a constraint-related index (only for the unique constraint and primary key constraint).

index_name

character varying(64)

Name of a constraint-related index (only for the unique constraint and primary key constraint).