check in sql while create table
snippet in sql

check in sql while create table

user9073


CREATE TABLE Persons
(

    ID int NOT NULL,

   
LastName varchar(255) NOT NULL,

   
FirstName varchar(255),

   
Age int,

   
CHECK (Age>=18)

);