Adding check constraints when altering a table

Use the Add Check Constraints window to add check constraints to your table. A check constraint sets restrictions on data added to the table. Check constraints are enforced when rows in the table are inserted or updated.

You can define a check constraint that references a single column by specifying that column in the Check condition box.

You can add multiple check constraints before closing this window.

Fields and controls

Authorities and privileges



To add new check constraints:

  1. In the Check condition box, specify the check condition for the constraint that you're defining.

  2. Optional: In the Constraint name field, type a name for the check constraint.

  3. Optional: In the Comment field, type a comment to document the new check constraint.

  4. Click on Apply to add the new check constraint.

  5. Repeat steps 1 through 4 to add another check constraint.

  6. Click on Cancel to close the Add Check Constraint window.

  7. If you do not want to make any additional changes to the table, click on OK to alter your table and close the Alter Table notebook. Otherwise, continue on to one or more of the optional tasks.


Related information