DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Foreign key?

  1. #1
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688

    Unhappy

    Hi guys!
    I have refernce constraint name in the dba_constraints,
    but I don't know how to find which table and columns it refernces to? Could you help me please?
    Thanks!

    [Edited by kgb on 08-31-2001 at 10:06 AM]

  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    a reference consraints references the constraint given by R_OWNER and R_CONSTRAINT_NAME in dba_constraints :

    select R_OWNER,R_CONSTRAINT_NAME
    from dba_constraints
    where owner = '...'
    and constraint_name = '...'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width