So I have a table that has a clob column. And sometimes I have multiple rows that I need to concatenate together which I do doing something like
Select n.textid
LISTAGG(TRIM(n.text), '||')
WITHIN GROUP (ORDER BY n.createdate DESC) AS allnotes
from notetbl n
GROUP BY n.noteid;
which gives me 99% of the data formatted as I want. But when the clob field has something like
this is the first line
this is the second
(two lines there is no white space in-between)
when exporting that data into excel or a csv file the second line adds a single double quotation mark to the end of the second line. Like this.
this is the first line
this is the second"
If I manually open the clob and shorten it to one line the " doesn't appear on the export. So is there a way to force all the clob data to be on one line? or somehow nothave that second quotation mark appear? thanks for any advice!