0

我有这个代码,使用 wm_concat:

SELECT ... 
       wm_concat(distinct pori.inma_symbol ||' '|| pori.inma_nazwa|| '-' || pori.ilosc ||pori.JDMR_BAZOWA_NAZWA) as INDEKS,...
FROM ... pord
INNER JOIN ... maga
ON ...
inner join ... pori
on ...
where ... to_char(sysdate-1,'YYYY-MM_DD') AND to_char(sysdate,'YYYY-MM_DD')
and ... NOT LIKE 'ZZ'  AND  p... NOT LIKE 'CZ'
group by ...
ORDER BY ...

listagg 不支持 distinct 关键字,而且我没有 Idea,这很容易做到。帮助 :)

4

0 回答 0