Although I used the Sql server on a random basis for yonks, I did not understand until I came across it the other day so that you could do something like this:
declare @result varchar(8000) select @result = '' select @result = @result + acolumn+ ' ' from atable
Nothing I read in the Transact-Sql docs made me think of using a construct like a cursor, for example. My question is: Is this design supported by other versions of Sql or is it Sql Server-specific?
source share