日期:2014-05-16  浏览次数:20386 次

查询DB2多行数据一行显示(精简sql)

select o1.ORGTYPE,varchar(replace(replace(xml2clob(xmlagg(xmlelement(NAME a,orgName||','))),'<A>',''),'</A>',' ')) as aaa
from org o1 group by o1.ORGTYPE