title: SQL IN Clause replacement Temp table
body: <p>My query is :</p>
  
  <pre><code>Select * 
  from Person 
  where KV_CODE IN('','',''......1000 values here)
  </code></pre>
  
  <p>How to write this list of values in a temp table so that I can replace IN clause with a join to increase performance.</p>
  
  <p>This list of values is coming on the basis of random selection by user and is stored in a Java collection.</p>