分组然后合并,然后去除XML标签
SELECT replace(replace(replace(xml2clob(xmlagg(xmlelement(name A, 【字段】))),'</A><A>', '【分隔符】'),'</A>',''),'<A>','')   
from 【表】
group by 【分组字段】


如:

SELECT replace(replace(replace(xml2clob(xmlagg(xmlelement(name A, nounid))),'</A><A>', ','),'</A>',''),'<A>','')     
from SYS_NOUN
group by nounsuper

这样的方式执行速度非常快。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2022-01-20
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-10-03
相关资源
相似解决方案