Adding check constraint
To add a check constraint:
Procedure
- Log on to the MXDM.
-
In the Navigation tree pane, click
Database.
MXDM displays a list of available systems in My Systems.
-
Expand a selected system in the navigation tree.
List of catalogs for the selected system appears.
-
Click and expand the contents of a Catalog.
The list of schemas appears.
-
Expand a schema in the left pane.
The Tables folder appears.
- Expand the Tables folder and select a table in the left pane.
- Right-click the table and select Alter Table from the context menu.
-
Select
Add Check Constraint.
Add Check Constraint dialog appears.
- Select Let SQL/MX choose the name to generate the check constraint name automatically, else explicitly provide a check constraint name in the Name field.
- Enter the constraint text in the text box.
- Click OK to add check constraint to the table, else click Cancel to discard the changes.