J
Jon
Is it possible to use a parameter in conjuntion with an IN statement?
For example, if I have the following SQL,
select * from table where key in ('1','2','3')
How can I make the values in the IN be a param? If I do the following.
select * from table where key in (@invals)
I can't make a parameter like so,
param = new sqlparameter("@invals","'1','2','3'")
It simply returns no results.
Is there a way to make a parameter that will work?
Thanks
For example, if I have the following SQL,
select * from table where key in ('1','2','3')
How can I make the values in the IN be a param? If I do the following.
select * from table where key in (@invals)
I can't make a parameter like so,
param = new sqlparameter("@invals","'1','2','3'")
It simply returns no results.
Is there a way to make a parameter that will work?
Thanks