title: PreparedStatement batching with different SQL statements
body: <p>I'm wondering if something is possible in Java</p>
  
  <pre><code>String A = "UPDATE blah set x=? y=? z=?"
  String B = "UPDATE blah set a=? b=? c=? d=?"
  </code></pre>
  
  <p>I'd like to have a prepared statement primarily for the speed, secondarily for the security. I want to be able to fill out the bind variables for A, execute A, bind variables for B, and execute B, then commit the entire transaction. Is there a better way to accomplish this?</p>