I'm making a Stored Procedure that basically concatenates a long string with data from many records.
I want to do:
set @output = @output + 'aaa' + LINEBREAK
How do I specify that line break?
DECLARE @LINEBREAK AS varchar(2)
SET @LINEBREAK = CHAR(13) + CHAR(10)
Try this:
set @output = @output + 'aaa' + char(13)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With