Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

Creating Tables with Unicode Field types

Creating tables with Unicode field types is done by adding or inserting a new field with a field type set to one of the following Unicode field types: CT_FSTRING, CT_F2STRING, CT_STRING or CT_2STRING.

Previous Topic

Next Topic

c-treeDB API C API Example

ctdbAddField(hTable, "f1", CT_FUNICODE, 40);

ctdbAddField(hTable, "f2", CT_INT4, 4);

if ((eRet = ctdbCreateTable(hTable, "table", CTCREATE_NORMAL)) != CTDBRET_OK)

{

printf("ctdbCreateTable failed with error %d", eRet);

}

TOCIndex