Previous Topic

Next Topic

Adding an existing table

An existing table may be added or imported to a database by calling ctdbAddTable(). ctdbAddTable() takes a database handle, the table name, and the path where the database is located.

/* add MyTable to the current database */
if (ctdbAddTable(hDatabase, “MyTable”, “”) != CTDBRET_OK)
    printf(“Add table failed\n”);