Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic


Add, change or delete the conditional expression associated with an index, given by number.


CTDBRET ctdbUpdateCndxIndex(CTHANDLE Handle, NINT indexnbr,

pTEXT cndexpr)


ctdbUpdateCndxIndex() adds, changes or deletes the conditional expression associated with an index. After the conditional expression is successfully associated with the index, the index data is automatically rebuilt. To retrieve the conditional expression, use ctdbGetCndxIndex() or ctdbGetCndxIndexByName().

  • Handle [in] the Table Handle.
  • indexnbr [in] the index number.
  • cndexpr [in] string containing the conditional expression.


ctdbUpdateCndxIndex() returns CTDBRET_OK on success, or c-treeDB API C API error code on failure.

See also

ctdbUpdateCndxIndexByName(), ctdbGetCndxIndex(), ctdbGetCndxIndexByName(), ctdbGetCndxIndexLength(), ctdbGetCndxIndexLengthByName()