oracle将多条数据合并成一条

select  t.col1,t.col2  ,wmsys.wm_concat(t.col3||’ ‘) AS col3 , 
wmsys.wm_concat(t.col4||”) as col4,wmsys.wm_concat(t.col5||”) as col5,wmsys.wm_concat(t.col6||”) as col6 
from tablename t GROUP BY  t.col1,t.col2 ;

转载于:https://www.cnblogs.com/AaronLi/p/4164913.html

    原文作者:weixin_30342827
    原文地址: https://blog.csdn.net/weixin_30342827/article/details/97986159
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞