12/08/2018
Q.28. What is the use of check constraint in MySQL? Explain using an example.
Ans: Check constraint checks for the validity or condition of a given field..
Example..
create table student
(Age int check (age>4));
Above example will check whether the age entered is more than 4 or not..and allows an entry only if the condition is true.