What are batch updates. in jdbc

Answer Posted / gajendra

Batch updates is a facility given by the JDBC to the
application developers to submit a set of SQL update
statements as batch to the database.

st.addBatch("Update statement1");
st.addBatch("Update statement2");
st.addBatch("Update statement3");

int updated[]=st.executeBatch();// This methods throws
BatchUpdateException and SQLException

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

506


How arrays are stored in memory in java?

513


What is the difference between heap and stack memory?

548


What exactly is methodology?

486


What is namespace in java?

545






What are extraneous variables examples?

530


Is linkedlist thread safe in java?

563


What is method overloading and method overriding?

538


What is a numeric string?

565


What is final int?

533


What is string syntax?

550


Explain thread in java?

664


Discuss about garbage collector in Java.

648


What are the different types of constructor?

526


How we can declare a static variable?

654