Defining
Unique Constraints
Constraints define the conditions that must be met before values are
accepted in the columns of a table.
To define a unique constraint
- In the Table Editor, open the
table where you want to define a unique constraint. The table appears in
the Table Editor document.
- Click the Constraints tab.
- Click the cell in the empty
row of the Type column. A default constraint name appears.
- Enter a new name if you want
to change the default constraint name.
- Select Unique from the list
box. The Unique Columns dialog box is displayed.
- Check the boxes of the table
columns that define the unique constraint.
- Click OK to display the
settings on the Constraints page.
- Choose Table -> Execute to
save your settings to the database.
Tip
BYTE and TEXT data type columns cannot be a part of a unique constraint.