0

check constraint

how to use check constraint??

1st Apr 2017, 10:08 AM
Sanya
1 Odpowiedź
+ 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