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

Thread: Select child records

  1. #1
    Join Date
    Feb 2006
    Posts
    20

    Select child records

    Hi All,

    I have a table called TableA (Field1,Field2,Field3)
    and Field1 is the unique key (Primary Key) it used in several other tables as Forigen Key. Is there any way i could select all the records which are related to Field1 of TableA.

    I don't want to write select statements for each child table.

    Please If any one knows help me

    Thanks,
    Kiru

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    You have to write a select statement, or statements, that include all those child tables. However you can use the system view user_tab_constraints to identify those tables.
    David Aldridge,
    "The Oracle Sponge"

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

    Oracle ACE

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Sorry, user_constraints, not user_tab_constraints. Only been awake 30 mins.
    David Aldridge,
    "The Oracle Sponge"

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

    Oracle ACE

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