Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to add CHECK constraint to a column in postgres

ALTER TABLE foo
    ADD CHECK (column_1 > 2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #CHECK #constraint #column #postgres
ADD COMMENT
Topic
Name
2+6 =