IsColumnInIndex function

Synopsis
bool UltraLite_TableSchema_iface::IsColumnInIndex(
  const ULValue & column_id,
  const ULValue & index_id
)
Parameters
  • 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.

Remarks

Checks whether the table is contained in the named index.

Returns
  • 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.

.