Oracle 把某一個字段合並到一起
column1 column2 column3
id_1 name_1 lable_1
id_1 name_1 lable_2
變為
column1 column2 column3
id_1 name_1 lable_1,lable_2
-- SQL
-- select code,name,wmsys.wm_concat(baname) from tab group by code,name;
select column1,column2,wmsys.wm_concat(column3)
from tab
group by column1,column2;