Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL DEFAULT Constraint

CREATE TABLE Persons (
    ID int NOT NULL,
    LastName varchar(255) NOT NULL,
    FirstName varchar(255),
    Age int,
    City varchar(255) DEFAULT 'Sandnes'
);
 
PREVIOUS NEXT
Tagged: #SQL #DEFAULT #Constraint
ADD COMMENT
Topic
Name
9+7 =