Previous Topic

Next Topic

Dropping a table

When you drop a table from a database, the table information is removed from the database dictionary, but the table data and index files are left untouched. The drop table operation can be reversed with an add table operation. Drop a table from a database by calling ctdbDropTable().

/* drop MyTable from current database */
if (ctdbDropTable(hDatabase, “MyTable”) != CTDBRET_OK)
   printf(“Drop table failed\n”);