Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> nice 9.2 feature for hierarchical queries: sys_connect_by_path
Mark Powell actually pointed this feature out in a post a while ago, but I
didn't pay any attention until perusing the manual recently...
here's oracle's example:
SELECT LPAD(' ', 2*level-1)||SYS_CONNECT_BY_PATH(last_name, '/') "Path"
FROM employees
START WITH last_name = 'Kochhar'
CONNECT BY PRIOR employee_id = manager_id;
Path
quite a nice addition!
++ mcs Received on Wed Oct 20 2004 - 16:48:54 CDT