已经子公司
想要结果 。。。, 父父公司 , 父公司 ,子公司
就是一行显示结果
start with 就不用了 ,查出来是好几行
------解决方案--------------------
select t_department.*, sys_connect_by_path(depname, '/') as path from t_department
start with parentid=-1 connect by prior id=parentid;
select t_department.*, sys_connect_by_path(depname, '/') as path from t_department
start with parentid=-1 connect by prior id=parentid;