Implement execute() method of the Transaction interface
In JDBC each statement is executed within its own transaction.
Disable autocommit, execute queries and commit the transaction explicitly.
Separate INSERT statements with semicolon and execute it as a single Statement.
Use addBatch(), clearBatch() and executeBatch() methods of the Statement interface.
|