GaussDB-MY_CONSTRAINTS

53 阅读1分钟

GaussDB-MY_CONSTRAINTS

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

NameTypeDescription
constraint_namecharacter varying(64)Constraint name.
constraint_typetextConstraint 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). | | owner | character varying(64) | Constraint creator. |

更多详情请参考GaussDB 文档中心:doc.hcs.huawei.com/db/zh-cn/ga…