I'm looking for the best workarounds for the PreparedStatement "IN clause" issue, which apparently is not supported for multiple values due to sql injection attack security issues: One ?, One value. Not a list of values.
To illustrate:
select my_column from my_table where search_column in (?)
using ps.setString(1, "'A', 'B', 'C'");
is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.
Ideas for workarounds?
I don't want to have to execute the prepared statement multiple times, once for each search value (not using an IN clause), but that's where I am at this point.