I have something like this:
DECLARE @a VARSCHAR(100); SET @a = 'a,b,c,d,e'
DECLARE @b VARSCHAR(100); SET @b = '1,2,3,4,5'
I need something like this:
@c = 'a1,b2,c3,d4,e5'
The a and b have always the same length.
I was thinking of doing a split by comma, into temp tables, and then parse them with a do while loop. I was wondering though, maybe there is something more elegant than that?