check constraint

Kmandapalli
Posted by Kmandapalli under Sql Server category on | Points: 40 | Views : 283
CREATE TABLE CUSTOMERS(
ID INT NOT NULL,
NAME VARCHAR (20) NOT NULL,
AGE INT NOT NULL CHECK (AGE >= 18),
ADDRESS CHAR (25) ,
SALARY DECIMAL (18, 2),
PRIMARY KEY (ID)
);

Comments or Responses

Login to post response