Click to See Complete Forum and Search --> : Select child records


kiru
03-29-2006, 12:58 AM
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

slimdave
03-29-2006, 09:22 AM
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.

slimdave
03-29-2006, 09:24 AM
Sorry, user_constraints, not user_tab_constraints. Only been awake 30 mins.