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


createPrimaryIndex function

Creates the primary index for a table.

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


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


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