-1

I'm using the following code in Oracle 11g

alter table account_creation
drop constraint branch_code;

I get an error saying cannot drop constraint non existent constraint but when I check the table the NULL constraint still exists for that particular column Am I using the correct syntax?

0

1 Answer 1

1

Use this syntax:

ALTER TABLE account_creation
MODIFY (branch_code varchar(10) NULL);
1
  • if we don't know the data-type? and want to drop not-null constraint directly by column? Nov 25, 2015 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.