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

SQL Anywhere 11.0.1 (Français) » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference » TableSchema interface


createUniqueKey method

Creates a new unique key.

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


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.


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