1 目标: 将这三行数据合并为一行数据
2 语句如下:
select * from (
SELECT j.cny_cde,
listagg(j.ar_c_cde, ',') WITHIN GROUP(ORDER BY j.ar_c_cde) jjt
FROM fecorfdi_cny_cde_tab_view J
GROUP By j.cny_cde
)j
where j.cny_cde ='101'
效果如下:
2022-10-30 14:46:07
1 目标: 将这三行数据合并为一行数据
2 语句如下:
select * from (
SELECT j.cny_cde,
listagg(j.ar_c_cde, ',') WITHIN GROUP(ORDER BY j.ar_c_cde) jjt
FROM fecorfdi_cny_cde_tab_view J
GROUP By j.cny_cde
)j
where j.cny_cde ='101'
效果如下: