select sfzh,WMSYS.WM_CONCAT(dwmc) dwmc from tb_yggzb group by sfzh order by sfzh
--------------------------------------
版本为12c见:https://www.cnblogs.com/mingjing/p/8980059.html