How to execute bulk number of queries at once?
Answer Posted / kalyan
we can update multiple statements using batch as follows
statemenent st = getconnection().getStatement();
st.addBatch(sql stat1);
st.addBatch(sql stat2) ;
....
st.executeBatch();
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How do I find jdbc version?
What is Apache DBCP API?
What is ojvm used for?
Briefly tell about the jdbc architecture.
What is the difference between client and server database cursors?
What is jdbc servlet?
What do you mean by odbc?
What are the differences between setmaxrows(int) and setfetchsize(int)?
How many types of statements are there in jdbc?
Prepared statements are faster. Why?
Can resultset be null in java?
What is a JDBC 2.0 DataSource?
What is encrypted connection?
How will you perform truncation using JDBC?
What is the purpose of jdbc resultset interface?