cancel
Showing results for 
Search instead for 
Did you mean: 

Carriage return in STRING_AGG function

marcelgerr
Explorer
0 Kudos
446

I am having some difficulty trying to add multiple strings into a parameter field seperated by a line feed. So far I have come up with the following:

SELECT STRING_AGG ('some varchar field', BINTOSTR( HEXTOBIN('0D0A') )) FROM table1 but that generates the following error:

feature not supported: non-deterministic function is not allowed in constant expression

Any suggestions are more than welcome.

Regards,
Marcel.

marcelgerr
Explorer

I already fixed the problem like so:

SELECT STRING_AGG ('some varchar field', '

') FROM table1

Accepted Solutions (0)

Answers (0)