title: Use of a parameter at multiple places in a JDBC PreparedStatement
body: <p>I'm looking to use a value at multiple places in a JDBC <code>PreparedStatement ps</code>.</p>
  
  <p>Eg. the condition clause of the query is looking for the value of a single param be in the range [first, last]:</p>
  
  <pre><code>"select * from table99 
      where ?&gt;first and ?&lt;last"
  </code></pre>
  
  <p>i simply can assign the param twice: </p>
  
  <pre><code>ps.setInt(1, nTimes); 
  ps.setInt(2, nTimes); 
  </code></pre>
  
  <p>Is there a way of doing this-- like 
  marking the parameters to show which ones ought to get the same value? </p>
  
  <p>TIA</p>