//默认关联项显示
-- 对于工程信息
SELECT NVL2(
    LISTAGG(mc, '/') WITHIN GROUP (ORDER BY level), 
    '工程信息/' || LISTAGG(mc, '/') WITHIN GROUP (ORDER BY level), 
    ''
) AS mc
FROM (
    SELECT mc, level 
    FROM VIEW_SCTREE 
    START WITH wysb = '$main.glgcgl$' 
    CONNECT BY PRIOR sj = wysb
)
WHERE mc IS NOT NULL
union
SELECT NVL2(
    LISTAGG(mc, '/') WITHIN GROUP (ORDER BY level), 
    '项目信息/' || LISTAGG(mc, '/') WITHIN GROUP (ORDER BY level), 
    ''
) AS mc
FROM (
    SELECT mc, level 
    FROM VIEW_XFR 
    START WITH wysb = '$main.glxmfwrw$' 
    CONNECT BY PRIOR sj = wysb
)
WHERE mc IS NOT NULL 