Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic


Delete the field indicated by the field number index from a table.


CTDBRET ctdbDelField(CTHANDLE Handle, NINT Index)


ctdbDelField() deletes the field indicated by the field number Index from a table. Note that any fields with higher field numbers than the one you deleted will have one subtracted from their field numbers in order to fill the gap left by the field you deleted. Use ctdbDelFieldByName() to delete a field by name. Use ctdbAddField(), ctdbInsField() and ctdbInsFieldByName() to add fields to a table.

  • Handle [in] the Table handle.
  • Index [in] the field number to be deleted.


ctdbDelField() returns CTDBRET_OK on success or c-treeDB API error code on failure.

See also

ctdbAllocTable(), ctdbAddField(), ctdbInsField(), ctdbInsFieldByName(), ctdbDelFieldByName(), ctdbMoveField()