I have a Java service that creates a prepared statement, executes and then uses the resultSet. However, I have the potential scenario where the list of id passed to the select could be anywhere between 1 and 10000+. I have looked at batching the prepared statement. However, what I would really like to do is send the complete set or id to the sql and have it break up the query and return a complete result set.
select col1 from tab1 where id IN (?,?,?...);
Any pointers appreciated!