Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL CHECK Constraint

CREATE TABLE Persons (
    ID int NOT NULL,
    LastName varchar(255) NOT NULL,
    FirstName varchar(255),
    Age int,
    CHECK (Age>=18)
);
 
PREVIOUS NEXT
Tagged: #SQL #CHECK #Constraint
ADD COMMENT
Topic
Name
3+1 =