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!

Connect by prior vrs Connect by level

JimboJun 3 2014 — edited Jun 3 2014


hi,

I am trying to get me head around the difference between CONNECT BY PRIOR and CONNECT BY LEVEL

I can see how CONNECT BY PRIOR basically defines the parent / child relationship in a hierarchy within a table.

Q1. What does CONNECT BY LEVEL do ? Is if simply for creating a series of integers ?

Q2. LEVEL seems to be Psuedo column and therefore appears to be different from PRIOR ?

Q3. What therefore is PRIOR ? Can it only be used by the CONNECT BY clause ?

any help appreciated

Jim

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2014
Added on Jun 3 2014
1 comment
383 views