Collection of values as Parameter of preparedStatement
843854Mar 16 2004 — edited Mar 16 2004I would like to know if it is possible (and how) to pass a collection of values to prepare statement.
I'm interested in sentence like: "SELECT .... WHERE ... <column> IN (?)"
Then the parameter should be set to the statement when it contains more than a single value, for example the parameter will be 1,2,3,4,5,6,7 so I want that at execution time the value will be understood as:
"SELECT ... WHERE ... <column> IN (1,2,3,4,5,6,7)"
Thanks.