This is what I tried. I simply want to remove the constraint I just did there
ALTER TABLE product
ADD DEFAULT NULL FOR sale_id
ALTER TABLE product
ALTER COLUMN sale_id DROP DEFAULT
This is what I tried. I simply want to remove the constraint I just did there
ALTER TABLE product
ADD DEFAULT NULL FOR sale_id
ALTER TABLE product
ALTER COLUMN sale_id DROP DEFAULT
ALTER TABLE TABLE_NAME
DROP CONSTRAINT <constraint_name>
Eg:
ALTER TABLE students
ALTER COLUMN ph
DROP NOT NULL;