|
Hi all, II was wondering if anyone knew if I can do something like the following...
cmd.commandtext = 'SELECT id FROM tbl WHERE id IN (@listOfIntegers)' cmd.parameters.add('@listOfIntegers', oledbtype.integer).value = "12, 14, 16"
I can't seem to get it working (if it can work?). Firstly, the the numbers are integers but it is being submitted as a string so i realize that is an issue.
I have always built the query string up just by...
strQry = 'select id from tbl where id IN (' + listOfIntegers + ')'
Does anyone know how I can do this using parameters?
Thanks for your time. |