4.3.78 ctdbDropTable
Drop the table from the database.
Declaration
CTDBRET ctdbDropTable(CTHANDLE Handle, pTEXT TableName)Description
ctdbDropTable drops the table from the database, but does not delete the table from disk. When a table is dropped, the allocated records, fields, index and segments are freed.
Use ctdbAddTable to add a table to a database. Use ctdbDeleteTable to drop the table from the database and delete the table files from disk.
Returns
ctdbDropTable returns CTDBRET_OK on success, or the c-tree Plus error code on failure.
Example
eRet=ctdbConnect(hDatabase, database_name);eRet = ctdbDropTable(hDatabase, table_name);See also
ctdbDeleteTable, ctdbAddTable, ctdbAllocDatabase
|
FairCom Corporation www.faircom.com |