Define Primary Key and Indices Constraints
Selecting either Primary Key or Index/Unique from the Constraint button in the Create Table dialog box displays the Define Primary Key and Indices dialog box. Enter the INDEX specifications for the table that is being created.
Note: Add an ANSI Unique constraint by defining a unique secondary index on the unique columns.
Field or Control |
Description |
Indices |
Displays the name of each index specified for the table. Selecting an index in the list then reflects its specifications in the Index Columns list and in the configuration of the primary and secondary index type option buttons. |
Name |
Specify an optional name for the index. The specified name is displayed in the Indices list when the Add button is used to save the index specification. Note: Index names are optional. If a name is not entered in this field, index type (primary or secondary) is displayed in the Indices list and creates the table without an index name specification. |
Type |
Click Primary or Secondary to add the respective index type attribute to the index. Note: Each table can have only one primary index. |
Unique |
Select this check box to add the UNIQUE attribute to the index. |
Table Columns |
This list shows all of the columns specified for the table. Select the columns whose values are used as the basis for an index or constraint specification. To add columns✔ Do one of the following: |
Index Columns |
Shows all of the columns selected to provide index or constraint value. To remove columns✔ Do one of the following: |