Is there a code for concactenantion in SQL? -
i have record in database:
column1 column2 1 1 b 1 c
and result be:
column1 result 1 abc
i want query not use loop :)
for ms sql use:
declare @result varchar(1000) set @result = '' select @result = (@result + column2) mytable column1 = 1 select @result
Comments
Post a Comment