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.