Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

recursive select in user_constraints

pvojko2Dec 10 2005 — edited Dec 10 2005
I have 5 tables (or more) in master detail relation (five levels). Is possible to write recursive select cross user_constraints table to get all this levels from select?
my wrong try:
select table_name,R_CONSTRAINT_NAME,CONSTRAINT_NAME from user_constraints a
where a.R_CONSTRAINT_NAME is not null
connect by prior a.CONSTRAINT_NAME=a.r_CONSTRAINT_NAME start with a.R_CONSTRAINT_NAME='ZMPTDOPO_PK';
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2006
Added on Dec 10 2005
2 comments
366 views