1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| insert into articles values ('articles', 'articles_sup');
insert into articles values ('articles_top', 'articles');
commit;
select level
, categorie
, categorie_sup
, prior categorie
, prior categorie_sup
from articles
start with categorie = 'articles'
connect by categorie_sup = prior categorie;
LEVEL CATEGORIE CATEGORIE_SUP PRIORCATEGORIE PRIORCATEGORIE_SUP
----- ------------ ------------- -------------- ------------------
1 articles articles_sup
2 articles_top articles articles articles_sup |