There are many similar questions on this, but I cannot find any solutions that take into account everything that is too large for the varchar2 result.
So what I'm trying to do is:
Column1 | Column2
-------- --------
1 Hello
1 world,
1 please help
2 Thanks
2 world,
2 you're the best.
In it:
Column1 | Column2
-------- --------
1 Hello world, please help
2 Thanks world, you're the best.
My particular problem is that there are several cases where the new concatenated value exceeds 4000 characters, so I cannot use LISTAGGas I hoped. I am especially interested in solutions without having to write a function, but will do it.
source
share