我想提取我的经理的员工名单。看看下面的查询:
SELECT SYS_CONNECT_BY_PATH (username, ':') AS "Liste Membres",LEVEL
FROM employees
WHERE CONNECT_BY_ISLEAF = 1
AND username = '150') -- My_code
START WITH manager IS NULL
CONNECT BY PRIOR username = manager
这个查询的结果是:
:1:20:120:150
我想要得到的结果:
:1:20:120: