Foreign key constraints

select ‘alter table grt_mrc_ist.’||table_name||’ drop constraint ‘||constraint_name||’;’ from dba_constraints
where r_constraint_name in (select constraint_name from dba_constraints where table_name=’LIMIT_SET’ and owner=’GRT_MRC_IST’)
and r_owner=’GRT_MRC_IST’

Thursday, November 13th, 2008 at 08:42
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>