标签:path name auth order by sel desc row nec des
SELECT ltrim(MAX(sys_connect_by_path(name, ‘/‘)), ‘/‘)
FROM (SELECT t.name,ROWNUM rn
FROM (SELECT t.name
FROM (SELECT d.id, d.parent_id, d.name,ROWNUM rn
FROM oauth_role d
START WITH d.id =4
CONNECT BY PRIOR d.parent_id = d.id) t
ORDER BY t.rn DESC) t)
START WITH rn = 1
CONNECT BY rn - 1 = PRIOR rn;
标签:path name auth order by sel desc row nec des
原文地址:https://www.cnblogs.com/albert-think/p/12010012.html