I need to do a select that looks like this:
select C1, C2, C3 from my_table
where id in ( v1, v2, v3, ..., vN );
The values for the in clause are arbitrary and could be so many that I worry the length of the resultant SQL
string could exceed Oracle's limit, if I were to naively generate the String in my
Java code.
I've read up on batching but didn't find anything similar for selects of this type. How can I run this query safely using
JDBC? I know this is a common thing to do, any help is much appreciated.
thanks...
H