Hi, this is my question:
I execute this query:
SELECT CODE FROM MyTable
This is the result:
CODE
1
2
5
9
How can I insert the result in a varchar variable?:
@CODES='1,2,5,9'
I thought go row by row with a "FOR" cycle, but I don't know how to do it.
thanks.