Oihana PHP System

Constraint

Property keys shared by the constraint-related OpenEdge SQL system catalog tables.

The constraint metadata is split across several tables in OpenEdge SQL:

  • SYS_TBL_CONSTRS — table-level constraint header
  • SYS_CHK_CONSTRSCHECK constraint text
  • SYS_REF_CONSTRS — referential (foreign key) constraint rules
  • SYS_KEYCOL_USAGE — columns participating in a key constraint
  • SYS_CHKCOL_USAGE — columns referenced by a CHECK constraint
Tags
see
https://docs.progress.com/bundle/openedge-sql-reference/page/Overview-of-system-catalog-tables.html
author

Marc Alcaraz (eKameleon)

since
1.0.0

Table of Contents

Constants

CHECK_TEXT  : string = 'checkText'
SQL expression of a `CHECK` constraint (`SYS_CHK_CONSTRS.chktext`).
COLUMN  : string = 'column'
Column name participating in the constraint (`SYS_KEYCOL_USAGE.col` / `SYS_CHKCOL_USAGE.col`).
CONSTRAINT_NAME  : string = 'constraintName'
Name of the constraint (`constrname`).
CONSTRAINT_OWNER  : string = 'constraintOwner'
Owner (SQL schema) of the constraint (`constrowner`).
CONSTRAINT_TYPE  : string = 'constraintType'
Constraint type (`constrtype`): `P` (primary key), `U` (unique), `F` (foreign key) or `C` (check).
DEFERRABILITY  : string = 'deferrability'
Deferrability mode of the constraint (`deferrability`).
DELETE_RULE  : string = 'deleteRule'
`DELETE` referential action (`delete_rule`): `C` (cascade), `N` (set null), `D` (set default), `R` (restrict) or `A` (no action).
KEY_SEQUENCE  : string = 'keySequence'
Position of the column within a multi-column key (`keyseq`).
MATCH_TYPE  : string = 'matchType'
`MATCH` mode of a referential constraint (`match_type`).
UNIQUE_NAME  : string = 'uniqueName'
Identifier of the unique/primary key constraint referenced by a foreign key (`uniquename`).
UNIQUE_OWNER  : string = 'uniqueOwner'
Owner (SQL schema) of the referenced unique/primary key constraint (`uniqueowner`).
UPDATE_RULE  : string = 'updateRule'
`UPDATE` referential action (`update_rule`): `C` (cascade), `N` (set null), `D` (set default), `R` (restrict) or `A` (no action).

Constants

CHECK_TEXT

SQL expression of a `CHECK` constraint (`SYS_CHK_CONSTRS.chktext`).

public string CHECK_TEXT = 'checkText'

COLUMN

Column name participating in the constraint (`SYS_KEYCOL_USAGE.col` / `SYS_CHKCOL_USAGE.col`).

public string COLUMN = 'column'

CONSTRAINT_NAME

Name of the constraint (`constrname`).

public string CONSTRAINT_NAME = 'constraintName'

CONSTRAINT_OWNER

Owner (SQL schema) of the constraint (`constrowner`).

public string CONSTRAINT_OWNER = 'constraintOwner'

CONSTRAINT_TYPE

Constraint type (`constrtype`): `P` (primary key), `U` (unique), `F` (foreign key) or `C` (check).

public string CONSTRAINT_TYPE = 'constraintType'

DEFERRABILITY

Deferrability mode of the constraint (`deferrability`).

public string DEFERRABILITY = 'deferrability'

DELETE_RULE

`DELETE` referential action (`delete_rule`): `C` (cascade), `N` (set null), `D` (set default), `R` (restrict) or `A` (no action).

public string DELETE_RULE = 'deleteRule'

KEY_SEQUENCE

Position of the column within a multi-column key (`keyseq`).

public string KEY_SEQUENCE = 'keySequence'

MATCH_TYPE

`MATCH` mode of a referential constraint (`match_type`).

public string MATCH_TYPE = 'matchType'

UNIQUE_NAME

Identifier of the unique/primary key constraint referenced by a foreign key (`uniquename`).

public string UNIQUE_NAME = 'uniqueName'

UNIQUE_OWNER

Owner (SQL schema) of the referenced unique/primary key constraint (`uniqueowner`).

public string UNIQUE_OWNER = 'uniqueOwner'

UPDATE_RULE

`UPDATE` referential action (`update_rule`): `C` (cascade), `N` (set null), `D` (set default), `R` (restrict) or `A` (no action).

public string UPDATE_RULE = 'updateRule'
On this page

Search results