Data Access Application Block (DAAB) and SQL IN Keyword (Multiple Criteria)
I am using the Pattern and Practice Data Access Application Block and I want to be able to do SELECT using multiple criteria that you can use in SQL using the IN keyword. For example:
SELECT * FROM SomeTable WHERE PrimaryKey IN (@keys)
How can I pass @keys values? I don't want to dynamically build my SQL.
I'm querying an Oracle database.
Also, is there another way to make such a query more DAAB friendly?
Thanks, Keith
+2
source to share