Use a CHECK condition to specify a criterion for the values in a column.
The condition may specify rules that data must satisfy in order to be reasonable, or rules that reflect organization policies and procedures.
CHECK conditions on individual column values are useful when only a restricted range of values are valid for that column.
ALTER TABLE office MODIFY city CHECK ( city IN ( 'city_1', 'city_2', 'city_3' ) )
By default, string comparisons are case insensitive unless the database is explicitly created as a case-sensitive database, using the CASE RESPECT option.
ALTER TABLE employee MODIFY start_date CHECK ( start_date BETWEEN '1983/06/27' AND CURRENT DATE )You can use several date formats: the YYYY/MM/DD format is always recognized regardless of the current option settings.