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
What is 2 phase commit?
What are the classes and methods used for sending sql statements to database?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
What is the difference between executing, executequery, executeupdate in jdbc?
How to set NULL values in JDBC PreparedStatement?
What are the jdbc drivers in java?
How many types of jdbc drivers are available?
What types of DataSource objects are specified in the Optional Package?
What are the jdbc api components?
What is meant by connection string?
Differentiate between stored procedure and functions?
Which database is used for java?
Explain jdbc savepoint?
What does jdbc stand for?
Explain the locking system in jdbc?