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

SQL Anywhere 11.0.0 » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference » TableSchema interface

 

createUniqueKey function

Creates a new unique key.

Syntax
IndexSchema TableSchema.createUniqueKey(
  String index_name
) throws ULjException
Parameters
  • index_name¬†¬† The name of the key. The specified name must be a valid SQL identifier.

Remarks

A unique key is a constraint to identify one or more columns that uniquely identify each row in the table. A table can have more than one unique constraint.

Returns

The IndexSchema assigned to the created unique key with the specified name.