All Child tables of given table [message #619955] |
Sat, 26 July 2014 10:43 |
|
saipradyumn
Messages: 419 Registered: October 2011 Location: Hyderabad
|
Senior Member |
|
|
Hi All ,
Could any body please let us know how to find out all multi-level child tables given tables by using single query .
Ex Table1 have 2 child tables
They area table2A , table2B
Table2a have two child tables . Table3a1 , table3a2.
Table2B have two child tables . Table2b1 , table2b2.
Like this need to get the possible child tables of all tables by using single query.
Thanks
SaiPradyumn
|
|
|
Re: All Child tables of given table [message #619958 is a reply to message #619955] |
Sat, 26 July 2014 11:08 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
For your benifit of learning, first tell us whether you know how DB objects have dependencies and how they reference each other? If yes, then post the table description including the dependencies. Based on that you can query the dictionary views to get your desired output.
|
|
|
|
Re: All Child tables of given table [message #619963 is a reply to message #619955] |
Sat, 26 July 2014 11:29 |
|
Michel Cadot
Messages: 68643 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
ALL_CONTRAINTS gives you the referential integrity constraints and primary keys, you can use hierarchical query (CONNECT BY) to go from a table -> its PK -> all FK referencing this PK -> the tables -> their PK -> ...
|
|
|