Oracle’da hangi tablolar benim tabloma foreign key olarak bağlı bunun bilgisini nasıl alabilirim?
comments
1 references
// Comments are closed.
Oracle’da hangi tablolar benim tabloma foreign key olarak bağlı bunun bilgisini nasıl alabilirim?
// Comments are closed.
select table_name, constraint_name, status, owner
from all_constraints
where r_owner = :SEMA_ADI
and constraint_type = ‘R’
and r_constraint_name in
(
select constraint_name from all_constraints
where constraint_type in (‘P’, ‘U’)
and table_name = :TABLO_ADI
and owner = :SEMA_ADI
)
order by table_name, constraint_name