Skip to end of metadata
Go to start of metadata

The query corresponding to the monitoring element to check the constraints information is as follows.

Full List of Constraints

This shows a list of all constraints created in the database.

The query below works in Altibase 6.3.1 or later and can be used in lower versions by deleting the comment section.

  • Main Column Description

ColumnDescription
OBJECT_TYPEThe type of object.  
TABLE (T), VIEW (V), SEQUENCE (S), QUEUE (Q)
CONST_TYPEThe type of Constraint  
FOREIGN KEY (0), NOT NULL (1), UNIQUE (2), PRIMARY KEY (3), NULL (4), TIMESTAMP (5), LOCAL UNIQUE (6), CHECK (7)
CHECK_CONDITIONThis shows integrity rules defined when specifying CHECK constraints. This column is supported in Altibase 6.3.1 or later.

The List of Constraints and Tables and Indexes related to PK, FK, and UNIQUE

This shows information about the primary key, foreign key, and unique constraints.

  • Main Column Description

ColumnDescription
P_TABLEIf the constraint is Foreign Key, the name of the referenced table.
R_INDEXIf the constraint is Foreign Key, the name of the referenced index.

Composite Index Column Configuration List

This shows the composite index configuration information.

  • Main Column Description

ColumnDescription
COL_ORDERThe order in which index columns are organized. Start at 0.
SORTSort type of index column ASC (A), DESC (D)

Index Information Summary

This shows all the index information.

  • Main Column Description
ColumnDescription
TBS_NAMEThe name of the tablespace where the index is stored. (For compatibility with A4, indexes without a tablespace are considered memory tablespaces.)
IS_UNIQUEWhether the index is unique.  TRUE (T), FALSE (F)
COLUMN_CNTThe number of columns that make up the index
  • No labels