Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Alter Table drop constaint

vs224Jan 23 2008 — edited Jan 23 2008
Hi,

I would like to drop all constraints from a table.

So, instead of

delete from user_constraints
where CONSTRAINT_NAME in (select CONSTRAINT_NAME from user_constraints where table_name ='Table_Name') ;

i would like to use alter table for dropping the contraints

alter table table_name
drop constraints in
(select CONSTRAINT_NAME from user_constraints where table_name ='table_name') ;

Can someone let me know of correct query to do this.

Thanks,
Vidya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Jan 23 2008
4 comments
517 views