For circumstances out of my hand, I have a string of values:
@param1 = "1,2,3,4";
How do I do IN statement to check if an ID is in my string @param1?
so, it would look something like this:
select * from table1 where ID IN (@param1);
Normally, I guess I should have this:
select * from table1 where ID IN (1,2,3,4);
But unfortunately, under my circumstances, I simply don't have that, instead, I have just one parameter of type string of all my IDs concatenated, how do I select the rows from that?