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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 参考 » 系统对象 » 视图 » 系统视图

 

SYSCONSTRAINT 系统视图

SYSCONSTRAINT 系统视图的每一行描述数据库中的一个命名约束。该视图的基础系统表为 ISYSCONSTRAINT。

列名 列类型 说明
constraint_id UNSIGNED INT 约束的唯一 ID。
constraint_type CHAR(1) 约束类型:
  • C - 列检查约束。

  • T - 表约束。

  • P - 主键。

  • F - 外键。

  • U - 唯一约束。

ref_object_id UNSIGNED BIGINT 要应用约束的列、表或索引的对象 ID。
table_object_id UNSIGNED BIGINT 要应用约束的表的表 ID。
constraint_name CHAR(128) 约束名称。
基础系统表上的约束

PRIMARY KEY (constraint_id)

FOREIGN KEY (ref_object_id) 引用 SYS.ISYSOBJECT (object_id)

FOREIGN KEY (table_object_id) 引用 SYS.ISYSOBJECT (object_id)