select yh.yhid ,to_char(wmsys.wm_concat(js.jsmc)) from xtgl_yh yh
left join xtgl_yh_js yhjs on yh.yhid =yhjs.yhid
left join xtgl_js js on js.jsid=yhjs.jsid
group by yh. yhid )a
left join xtgl_yh yh on yh.yhid = a.yhid
left join xtgl_yh_js yhjs on yh.yhid =yhjs.yhid
left join xtgl_js js on js.jsid=yhjs.jsid
group by yh. yhid )a
left join xtgl_yh yh on yh.yhid = a.yhid
to_char(wmsys.wm_concat(js.jsmc))
张三 系统管理员,经理
李四 经理
原来的是这样的
张三 系统管理员
张三 经理
李四 经理