postgresql change column to not null
snippet in sql

postgresql change column to not null

user7443

-- To change a column to NOT NULL:
ALTER TABLE products ALTER COLUMN product_no SET NOT NULL;