The Paradox driver supports SQL statements to create and delete indexes. The Create Index Primary statement is used to create primary indexes. The Create Index statement is used to create non-primary indexes. The Drop Index statement is used to delete indexes.
filename is the name of the Paradox database file on which the index is to be based.
column is the name of a column that is included as the key field for the index. The column list must contain one or more consecutive fields in the database file, beginning with the first field in the database file.
Be careful when you create a primary key because any rows that have a primary key duplication are deleted when you execute the Create Index Primary statement.
For Paradox 7, 8, 9, and 10 database files only (when the Create Type is 7, 8, 9 or 10), the optional UNIQUE keyword prevents duplicate values in the non-primary index.
index_name identifies the index. If the name contains blanks or special characters, or does not begin with a letter, surround it with the grave character ( ` ) (ASCII 96).
filename is the name of the Paradox database file on which the index is to be based.
column is the name of a column that is included as the key field for the index.
For Paradox 7, 8, 9 or 10 database files only (when the Create Type is 7, 8, 9 or 10), the DESC keyword creates a non-primary index that uses descending keys.
path_name is the name of the Paradox database file from which the index is being dropped. The pathname can be either the fully qualified pathname or, if the database file is specified with the Database attribute of the connection string, a simple database file name.
index_name is the name that was given to the index when it was created. If the name contains blanks or special characters, or does not begin with a letter, surround it with the grave character ( ` ) (ASCII 96).