Tag Info

New answers tagged

1

You need to change java code to something like (for simplicity sake error handling and closing statements omitted) try { conn = ..... conn.setAutoCommit(false); Statement s1 = conn.createStatement(); s1.executeUpdate(/*first insert */); s1.executeUpdate(/*second insert */); // etc conn.commit(); } Side notes. 1) it's much ...



Top 50 recent answers are included