Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » Views » System views in Sybase Central

SYSCOLSTAT system view Next Page

SYSCONSTRAINT system view


Each row in the SYSCONSTRAINT system view describes a named constraint in the database. The underlying system table for this view is ISYSCONSTRAINT.

Columns
Column name Column type Column constraint
constraint_id UNSIGNED INT NOT NULL
constraint_type CHAR(1) NOT NULL
ref_object_id UNSIGNED BIGINT NOT NULL
table_object_id UNSIGNED BIGINTNOT NULL
constraint_nameCHAR(128)NOT NULL

constraint_id    The unique ID for the constraint.

constraint_type    The type of constraint:

ref_object_id    The object ID of the column, table, or index to which the constraint applies.

table_object_id    The table ID of the table to which the constraint applies.

constraint_name    The name of the constraint.

Constraints on underlying system table

PRIMARY KEY (constraint_id)

FOREIGN KEY (ref_object_id) references SYS.ISYSOBJECT (object_id)

FOREIGN KEY (table_object_id) references SYS.ISYSOBJECT (object_id)

UNIQUE (table_object_id, constraint_name)