SQL Issue
For an stored procedure input such as:
- @CustomerID = '1,2,3,4,'
- @Address = 'Oregon'
- @City = 'Portland'
. I need to insert values into separate rows such as below:
customerID | address city
--------------+------------------
1 | Oregon Portland
2 | Oregon Portland
3 | Oregon Portland
4 | Oregon Portland
I need help regarding how to insert CSV values in single parameter to separate rows.