title: What is the best approach using JDBC for parameterizing an IN clause?
body: <p>Say that I have a query of the form</p>
  
  <pre><code>SELECT * FROM MYTABLE WHERE MYCOL in (?)
  </code></pre>
  
  <p>And I want to parameterize the arguments to in.</p>
  
  <p>Is there a straightforward way to do this in Java with JDBC, in a way that could work on multiple databases without modifying the SQL itself? </p>
  
  <p>The closest <a href="https://stackoverflow.com/questions/337704/parameterizing-a-sql-in-clause">question I've found had to do with C#</a>, I'm wondering if there is something different for Java/JDBC. </p>