solidDB Help : Programming : Using SQL for database administration : Managing indexes
  
Managing indexes
Indexes are used to speed up access to tables. The database engine uses indexes to access the rows in a table directly. Without indexes, the engine would have to search the whole contents of a table to find the desired row. You can create as many indexes as you like on a single table but adding indexes does slow down write operations, such as inserts, deletes, and updates on that table. For details about creating indexes to improve performance, see Using indexes to improve query performance.
There are two kinds of indexes: non-unique indexes and unique indexes. A unique index is an index where all key values are unique. To create a unique index, use the UNIQUE restraint when creating the index.
The following table describes the statements used to create and delete indexes.
Note If the autocommit mode is set to OFF, you must commit your work by using the following SQL statement:
COMMIT WORK;
If the autocommit mode is set to ON, the transactions are committed automatically.
 
Task
Example
Reference
Create an index on a table
CREATE INDEX X_TEST ON TEST (I);
Create a unique index on a table
CREATE UNIQUE INDEX UX_TEST ON TEST (I);
Delete an index from a table
DROP INDEX X_TEST;
See
Primary key indexes
Secondary key indexes
Protection against duplicate indexes
Go up to
Using SQL for database administration