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

 

createPrimaryIndex method

Creates the primary index for a table.

Syntax
IndexSchema TableSchema.createPrimaryIndex(
  String index_name
) throws ULjException
Parameters
  • index_name   The name of index. The specified name must be a valid SQL identifier.

Remarks

Each table must have exactly one primary index. The columns in a primary index must be non-nullable.

Returns

The IndexSchema assigned to the created primary index with the specified name.