-- To change a column to NOT NULL:
ALTER TABLE products ALTER COLUMN product_no SET NOT NULL;
-- To change a column to nullable
ALTER TABLE mytable ALTER COLUMN mycolumn DROP NOT NULL;
ALTER TABLE person ALTER COLUMN phone DROP NOT NULL;
ALTER TABLE table_name ALTER COLUMN column_name DROP NOT NULL;