Sys_connect_by_path的语法为Sys_connect_by_path(column,char)
主要是将根节点到当前节点的层次路径排列出来,排列的是column指定的列,char为在连接字符串
select e.*,level,sys_connect_by_path(ename,'-->') from emp e
start with empno=7839
connect by prior empno=mgr
order by level
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28803801/viewspace-772872/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28803801/viewspace-772872/