M
Mervin Williams
Is there a way to use an input parameter to populate an IN operator (ie. "IN
(val1, val2, val3)") in a Where clause?
I have a data adapter whose SelectCommand reads:
"Select contact_id, firstname, lastname from Contact where contact_id
in (<val1>, <val2>, ...)"
I need to fill the list of values for the IN operator from a list of values
that I have retrieved in my code earleir. The goal here is to use an input
parameter that is an array of values used
to populate the IN operator in the where clause; so that the values "val1",
"val2" will be automatically enumerated from the parameter array.
Do you know whether this is possible?
Mervin Williams
(val1, val2, val3)") in a Where clause?
I have a data adapter whose SelectCommand reads:
"Select contact_id, firstname, lastname from Contact where contact_id
in (<val1>, <val2>, ...)"
I need to fill the list of values for the IN operator from a list of values
that I have retrieved in my code earleir. The goal here is to use an input
parameter that is an array of values used
to populate the IN operator in the where clause; so that the values "val1",
"val2" will be automatically enumerated from the parameter array.
Do you know whether this is possible?
Mervin Williams