查询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
select o1.ORGTYPE,varchar(replace(replace(xml2clob(xmlagg(xmlelement(NAME a,orgName||','))),'<A>',''),'</A>',' ')) as aaa
from org o1 group by o1.ORGTYPE
暂无评论。
评论功能维护中,当前仅展示历史评论。