KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically Handling Indexes In 4D v11 SQL
PRODUCT: 4D | VERSION: 11 | PLATFORM: Mac & Win
Published On: November 3, 2008

There are a new commands in 4D v11 SQL which allow you to create, modify, rebuild and delete indexes dynamically. The syntax of the commands follows:

SET INDEX(Field; index{;mode{;*}})

CREATE INDEX(Table;fieldsArray;indexType;indexName{;*})

DELETE INDEX(fieldPtr|indexName{;*})

The SET INDEX command creates an index of the type specified by the "index" parameter. This parameter is overloaded and can take either a boolean or integer type value.

For more information see the documentation topic Structure Access.

Commented by Atanas Atanassov on February 17, 2009 at 4:14 PM
These commands along with examples are covered in the "Database Indexing in 4D v11 SQL" class.