Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql change column to not null

-- To change a column to NOT NULL:
ALTER TABLE products ALTER COLUMN product_no SET NOT NULL;
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #postgresql #change #column #null
ADD COMMENT
Topic
Name
3+4 =