Use the CREATE INDEX statement to create a secondary index for an existing table. Index names may not have embedded spaces. Paradox indexes may be based on multiple columns. Due to the distinctive nature of dBASE expression indexes, only single-column indexes can be created with CREATE INDEX.
Use UNIQUE to create an index that raises an error if rows with duplicate column values are inserted. By default, indexes are not unique.
Use ASC (or ASCENDING) to create an index that orders data in an ascending direction (smallest to largest). DESC (or DESCENDING) creates a descending ordering (largest to smallest). When a direction imperative is not specified, ASC is the implied default.
The following statement creates a multi-column (compound) Paradox secondary index.
CREATE INDEX CustDate ON "Orders.db" (CustNo, SaleDate)
The following statement creates a unique dBASE secondary index.
CREATE UNIQUE INDEX Namex ON "Employee.dbf" (Last_Name)
The existence of indexes may affect the updatability of queries. See the section on updatable queries for more information.