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 接口

 

createUniqueKey 方法

创建新的唯一键。

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

注释

唯一键是一个约束,用于标识一个或多个唯一标识表中每行的列。一个表可以有一个以上的唯一约束。

返回值

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