I'm writing Java code to execute a batch of insert statements into an Oracle database. I've seen in some of the documentation (http://docs.oracle.com/cd/B28359_01/java.111/b31224/oraperf.htm) that I can use sendBatch()
or executeBatch()
to do this. I'm a little confused about what the differences between the two approaches are, or why I would choose on over the other. Maybe I just missed something in my readings.
Is there anyone who can clearly explain what the differences are, and how I can decide when I should use one approach instead of the other?