8. OpenSQL Statements : CREATE INDEX : Syntax
 
Share this page                  
Syntax
The CREATE INDEX statement has the following format:
[EXEC SQL] CREATE [UNIQUE] INDEX [schema.]index_name
              ON table_name
              (column_name {, column_name})[UNIQUE]
              [WITH with-clause]
index_name
Defines the name of the index. This must be a valid object name.
table_name
Specifies the table on which the index is to be created.
column_name
Specifies a list of columns from the table to be included in the index.
UNIQUE
Prevents the index from accepting duplicate values in key fields.
WITH with-clause
Specifies Enterprise Access product-specific options. For details,see your Enterprise Access product guide.For an overview of the Enterprise Access product WITH clause, see the chapter "OpenSQL Features."