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 » IndexSchema interface

 

addColumn method

Adds a column to the index.

Syntax
IndexSchema IndexSchema.addColumn(
  String column_name,
  byte sort_order
) throws ULjException
Parameters
  • 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.

Remarks

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

Returns

This IndexSchema with the added column.