17,377
社区成员
发帖
与我相关
我的任务
分享
select col1,WMSYS.WM_CONCAT(col3)
from tb
where col3 is not null
group by col1
select col1,WMSYS.WM_CONCAT(col3)
from tb
group by col1
select a1.COL1,nvl(a1.COL3,'') || nvl(a2.COL3,'') || nvl(a3.COL3,'')
from
(select COL1,COL3 from tb where COL2=1) a1,
(select COL1,COL3 from tb where COL2=2) a2,
(select COL1,COL3 from tb where COL2=3) a3
where a1.COL1=a2.COL1 and a1.COL1=a3.COL1