I need to insert records into a SQL Server table. The client send ids I need to insert into a specific column in the table:
(2,4,123,1357,1234,5657,753);
Using this function I'm splitting the comma delimited string, but not sure how to insert it to the table along with the other columns
I need to create something that will generate inserts such as:
insert into table_name (id,column_2,column_3) values (2, column_s_some_value, column_3_some_value);
insert into table_name (id,column_2,column_3) values (4, column_s_some_other_value, column_3_some_value);
insert into table_name (id,column_2,column_3) values (123, column_s_some_value, column_3_some_value);
ETC...
How can I achieve that?