I've created a PreparedStatement and have added a couple of data in a bactch
PreparedStatement ps = conn.PreparedStatement("INSERT into table (a, b) values (?, ?)";
ps.setInt(1, 1);
ps.setInt(2, 2);
ps.addBatch
ps.setInt(1, 4);
ps.setInt(2, 5);
ps.addBatch
Now when I execute ps. I get the result, now lets say ps fails, then I want to insert the records, one by one not in the batch mode.
How do i extract the prepared statements, I can get the size, but not sure how to get the records?