A table must be opened before any data operations within it can take place. Use ctdbOpenTable() to open a table.
/* open a table */
if (ctdbOpenTable(hTable, "MyTable", CTOPEN_NORMAL) != CTDBRET_OK)
printf("Open table failed\n");
After opening the table, usual operations like add, update, delete, and search for records can be done. Record operations are described in detail in Working with Records.
ctdbOpenTable() takes as parameters a newly allocated table handle, the table name, and the table open mode.
For a list of modes for opening a table, see Table Open Modes.