0
check constraint
how to use check constraint??
1 Answer
+ 24
It can be used to check the input given in the colum by the user
eg:-
CREATEÂ TABLEÂ Persons (
   ID int NOT NULL,
   Name varchar(25),
   Age int CHECK (Age>=10)
);
The above command checks whether the age entered is greater than equal to 10.