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

Thread: find out which tables reference a table's primary key

  1. #1
    Join Date
    Oct 2003
    Posts
    27

    find out which tables reference a table's primary key

    how do you query data dictionary to find out which tables references a table's primary key as foreign key?

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    dba_constraints
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    124
    select a.TABLE_NAME from user_constraints a , user_constraints b where a.constraint_name = b.R_CONSTRAINT_NAME and a.constraint_type in ('R','P');

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