Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL CHECK Constraint in Existing Table

-- Adding CHECK constraint without name

ALTER TABLE Orders
ADD CHECK (amount > 0);
 
PREVIOUS NEXT
Tagged: #SQL #CHECK #Constraint #Existing #Table
ADD COMMENT
Topic
Name
5+4 =