I would like to take two separate strings of value pairs delimited by commas and insert each pair into a row in the database.
For example:
X = "1,2,3" Y = "A,B,C" => X | Y
---------
1 | A
2 | B
3 | C
I am using MSSQL 2008, but solutions for any database would be greatly appreciated. Also if there is a better method to handle inserting these sets of data other than just writing a SQL query please explain in detail.