Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: getting foreign key dependencies
Try this:
select b.owner||'.'||b.table_name||'.'||b.column_name from user_constraints a, user_cons_columns b where a.column_name='<your_col_name>'
and a.table_name='<your_table_name>' and a.constraint_type='R' and a.r_constraint_name=b.constraint_name;
I hope this helps.
Michael Serbanescu
![]() |
![]() |