c-treeDB API for C++ - Developers Guide
CTTable::AddIndex
Syntax
CTIndex AddIndex(const CTString& name, CTDBKEY KeyType,
CTBOOL AllowDuplicates, CTBOOL NullFlag)
Parameters
- name [in] The index name to add to the table
- KeyType [in] The index type. Allowed types are:
- CTINDEX_FIXED
- CTINDEX_LEADING
- CTINDEX_PADDING
- CTINDEX_LEADPAD
- CTINDEX_ERROR
- AllowDuplicates [in] The flag indicating if the index accepts duplicates or not.
- NullFlag [in] The flag indicating if Null fields are allowed or not.
Description
Adds a new index to the table
Return
None.
See also
DelIndex(), AddField(), HasNullFieldSupport()