0

check constraint

how to use check constraint??

1st Apr 2017, 10:08 AM
Sanya
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.
1st Apr 2017, 10:28 AM
Frost
Frost - avatar