oracle多行合并成一行,oracle多行一行

來源:互聯網
上載者:User

oracle多行合并成一行,oracle多行一行

在mysql有關鍵字group_concat提供了類似的功能,在oracle中類似功能關鍵字是wm_concat.比如我有如下查詢資料:

但是我希望能夠顯示成一行查詢出來,結果圖如下:

關鍵sql代碼形如:

select t.sglcheckid,wm_concat(t.salemodulename) from t_item_group_ex t where t.sglcheckid = '000********004' group by t.sglcheckid

mysql 多行合并成一行的解決辦法:http://blog.csdn.net/zl544434558/article/details/37697435

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.