oracle12中无法使用wm_concat解决

使用新的函数代替

listagg(合并字段,'连接符号') within group (order by 排序字段)

但是这样使用如果内容多的话会报错‘返回的结果过长’,所以需要使用方法将其转换为glob

xmlagg(xmlparse(content 合并字段||',' wellformed) order by 排序字段).getclobval() 

分租的话在sql后面使用group by 进行分组

原文地址:https://blog.csdn.net/chenyidong521/article/details/78913498 

原文地址:https://www.cnblogs.com/wintuzi/p/13902628.html