I’m wondering if something is possible in Java
String A = "UPDATE blah set x=? y=? z=?"
String B = "UPDATE blah set a=? b=? c=? d=?"
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?
You can utilize multiple PreparedStatements for the desired result: