Dynamic String Aggregation exceeding 4000byte length. Oracle 11g
Hello Guys,
We are using Oracle 11g
I have a problem with the string concatenation being too large. I looked around for a while
and people suggested custom functions (which is difficult due to restrictions in our db environemnt)
or using a clob datatype. Now I have not found a way how to use a clob with the below method.
The number of rows I have to merge varies with each IDNum group so it has to be dynamic
--ORA-01489: result of string concatenation is too long
SELECT LISTAGG(MYBIGTEXT,',') WITHIN GROUP( ORDER BY IDNum) A FROM ourtablewithbigtext ;
Thanks for any hints.