日期:2014-05-16 浏览次数:20473 次
///////////////////////////////////[1]节点和叶子组成的树(路径) select sys_connect_by_path(trim(f.function_name),';') from ep_sys_funccode_info f start with f.parent_code = '99999' connect by f.parent_code = prior f.function_code; ////////////////////////////////////[2]叶子的树(路径) select t1.code,t1.dir from ( select f.function_code code, sys_connect_by_path(trim(f.function_name),';') dir,f.node_type ty from ep_sys_funccode_info f start with f.parent_code = '99999' and f.function_name like '系统%' connect by f.parent_code = prior f.function_code ) t1 where t1.ty = '1';