We have a function that turns a delimited list into a table:
select * from dbo.fn_rpt_ParseValues('abc|123|test','|')
Results:
abc
123
test
How can I get each row into a SQL variable? For example:
@Name = 'abc'
@Phone = '123'
@Comment = 'test'
Thanks!
fn_rpt_ParseValues? If so, just change it to return each value in a separate column, then you can assign them to variables in a singleSELECT.