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

SQL Anywhere 11.0.1 » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference » IndexSchema interface


addColumn method

Adds a column to the index.

IndexSchema IndexSchema.addColumn(
  String column_name,
  byte sort_order
) throws ULjException
  • column_name   The name of the column to add. The specified column must be a column of the table on which this index is being created.

  • sort_order   A constant determining the sort order. Must be IndexSchema.ASCENDING or IndexSchema.DESCENDING.


The order that columns are added to the index determines the sorts precedence. The first column has highest precedence.


This IndexSchema with the added column.