0

I have a stored procedure which takes input a single value which is a array of integers. This input is not from any table but from a interface. How do I read this array of values in a variable and decode them to seperate columns and insert in to table. I also then need to output a single value which is a array of some values.

For Ex : Input =x x= 1 100 200 300

I need to read this and input 1 in to a seperate column and 100 in to a seperate column and so forth

I then need to output a variable which is a array of values

For Ex: y=(141,2) where 141 is the unique value for the row . dont worry about 141 and 2 I can figure out how to get those values but how do I output a array of values

I am on SQL 2005

Thanks

user3313579
  • 91
  • 1
  • 1
  • 4

0 Answers0