passing parameters for where in clause
Posted: Wed 08 Nov 2017 20:33
I have a SQL Query something like
select * from mytable where field in ('a', 'b' ,'c') where I need to send 'a', 'b' 'c' as a parameter. I tried a few variations, array, string, but either get no response or application execption.
How can I accomplish this?
As a temporary workaround I replaced the string in the query but not ideal solution...
select * from mytable where field in ('a', 'b' ,'c') where I need to send 'a', 'b' 'c' as a parameter. I tried a few variations, array, string, but either get no response or application execption.
How can I accomplish this?
As a temporary workaround I replaced the string in the query but not ideal solution...