Hello,
I'm trying to append varchar values to an existing varchar in a loop. I was looking for somethign like the '+=' operator that is used in a lot of programming languages. Thanks in advance.
Unfortunately, SQL Server does not understand those nice little shortcuts that we all picked up from other languages ( the ones I miss the most are "++" and "--" ). Try, this it should work for you. Also, remember, any value added, subtracted, mutliplied etc.... to a null value will end up as null.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.