Entering content frame

 Creating an Index 

Use

You can use SQL Studio to create new indexes for database tables.

Prerequisites

You have the necessary user authorizations and the user attribute NOT EXCLUSIVE.

For an explanation of user authorizations and user attributes, see the User Concept section of the documentation Database Administration and the Authorization section of the Reference Manual.

Procedure

...

       1.      In the Catalog Manager select the database table that you want to create an index for, and choose Catalog Manager ® New ® Index Definition.

       2.      In the Index Name field, enter a name for the index.

       3.      In the In Index field, choose Yes for the columns that you want to index values for.

       4.      To sort the index values in ascending or descending order, select the option ASC or DESC in the Sort field.

       5.      To change the sequence of the table columns, select a table column and use the Ý ß, arrows to move it up or down.

       6.      Select the required options:

Unique

Ensures the uniqueness of the indexed columns

Index Name Uppercase

Automatic conversion of table names and column headers into upper case.

       7.      Choose Table Definition ® Create Index.

       8.      To export the SQL statement for creating the index to the SQL dialog, choose Index Definition ® Export to SQL Dialog.

For information on the syntax of CREATE INDEX statements, see the CREATE INDEX Statement section of the Reference Manual.

 

Leaving content frame