select ?连接函数(t.dept_name,'--') "部门路径"
from manager_dept t
where
t.isleaf=1
start with t.parent_dept_id=0
connect by t.parent_dept_id=prior t.dept_id我想得到部门的绝对路径(eg:省--市--县),Oracle里有个函数可以实现的,一时想不起来是哪个函数了,哪位大大高诉一下,无限感激
from manager_dept t
where
t.isleaf=1
start with t.parent_dept_id=0
connect by t.parent_dept_id=prior t.dept_id我想得到部门的绝对路径(eg:省--市--县),Oracle里有个函数可以实现的,一时想不起来是哪个函数了,哪位大大高诉一下,无限感激
sys_connect_by_path(dept_name,'--')