Previous Topic: Adding or Removing Data CompressionNext Topic: Dropping a Check Constraint


Adding a New Check Constraint

ALTER TABLE statement

To add a new check constraint, use the SQL DDL ALTER TABLE statement with the ADD CHECK option.

Considerations

Example

In the following example, a new check constraint is added to the BENEFITS table.

alter table emp.benefits
   add check ( fiscal_year > 1920 );