用逗号隔开(开头末尾都没逗号) SELECT colName1,LISTAGG(colName2, ',') FROM tableName GROUP BY colName1 用逗号隔开(末尾有逗号) SELECT colName1,replace(replace(xml2clob(xmlagg(xmlelement(NAME a, colName2||','))),'<A>',''),'<
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有