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

SQL Anywhere 11.0.0 » UltraLite - C and C++ Programming » API Reference » UltraLite C++ API Reference » UltraLite_TableSchema_iface class


IsColumnInIndex function

bool UltraLite_TableSchema_iface::IsColumnInIndex(
  const ULValue & column_id,
  const ULValue & index_id
  • column_id   A 1-based ordinal number identifying the column. You can get the column_id by calling GetColumnCount function.

  • index_id   A 1-based ordinal number identifying the index. You can get the number of indexes in a table by calling GetIndexCount function.


Checks whether the table is contained in the named index.

  • True if the column is contained in the index.
  • False if the column is not contained in the index.
  • Sets SQLE_COLUMN_NOT_FOUND if the column name does not exist.
  • Sets SQLE_INDEX_NOT_FOUND if the index does not exist.