Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

check constraint in sql

#For one column
CREATE TABLE Persons (
    ID int NOT NULL,
    LastName varchar(255) NOT NULL,
    FirstName varchar(255),
    Age int CHECK (Age>=18)
);
 
PREVIOUS NEXT
Tagged: #check #constraint #sql
ADD COMMENT
Topic
Name
2+8 =