I want to execute query
SELECT id, name FROM MyTable WHERE (id, name) IN ((1, 'One'), (2, 'Two'))
using OleDbConnection
and OleDbCommand
. Is it possible to pass the contents of IN
clause as a parameter to command? If yes then what value should I pass a parameter value? List, IEnumerable or something else? If not then is it possible to pass the list of single values like for query
SELECT id, name FROM MyTable WHERE id IN (1, 2)