How to delete a constraint if it is not named?

Showing Answers 1 - 3 of 3 Answers

Dear Shruti,
First query the data dictionary view "USER_CONS_COLUMNS" to find the constraint name.
Then instead of dropping the constraint just disable it.

step1:--> select constraint_name,column_name from user_cons_columns where table_name='TABLE_NAME'

n.b: please give the table_name in capital letters;
step-2--> disbale the constraint using the following command.

alter table table_name disable constraint constraint_name;

try it and reply

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions