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

SQL Anywhere 11.0.1 (中文) » UltraLiteJ » UltraLiteJ 参考 » UltraLiteJ API 参考 » TableSchema 接口

 

createUniqueIndex 方法

创建新的唯一索引。

语法
IndexSchema TableSchema.createUniqueIndex(
  String index_name
) throws ULjException
参数
  • index_name   索引的名称。所指定的名称必须是有效的 SQL 标识符。

注释

每个索引键都必须是唯一的,或者至少在一列中包含空值。

与具有唯一键约束的列不同,具有唯一索引的列允许空值。外键可以引用主键或唯一键,但不能引用唯一索引。

返回值

用于使用指定名称创建唯一索引的 IndexSchema。