Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Foreign keys.
on 1/10/01 4:28 PM, vdolt_at_my-deja.com at vdolt_at_my-deja.com wrote:
> Message from the Deja.com forum:
> comp.databases.oracle.server
> Your subscription is set to individual email delivery
> This message was sent to jwalthour_at_mac.com
> Deja.com: Best way to buy a PC
> http://www.deja.com/channels/channel.xp?CID=13031
>>
select b.table_name , b.constraint_name as foreign_key , a.constraint_name as primary_key , a.table_name as referenced_table
, dba_constraints b
where a.constraint_name=b.r_constraint_name
and b.table_name='<X>'
(replace <X> with the name of the table you want to know about.
Hopt this helps,
-- Jon Walthour, BSCD Oracle 8i Certified Database Administrator marchFIRST (http://www.marchFIRST.com) Cincinnati, Ohio Sent via Deja.com http://www.deja.com/ Before you buy.Received on Mon Jan 15 2001 - 19:33:09 CST