Check constraints in a relational database ensure that only certain values can be stored in one (or more columns). Check constraints can only validate columns of a single row.
Check constraints validate the value of one or more columns in a single row of a relational table. Typical check constraints are salary > 0
(validating a single column) or hire_date < fire_date
(validating the dependency between two columns).
Check constraints can not be used to validate columns between different rows.
All relational DBMS except MySQL support check constraints.