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 metadata in jdbc?
What do you understand by jdbc datasource?
What is transaction processing in jdbc?
Which jdbc drivers will run your program?
What is java soft framework?
How can we set null value in jdbc preparedstatement?
Is jdbc faster than odbc?
What is the JDBC syntax for using a literal or variable in a standard Statement?
Explain about the drive manager class working?
Why should we close database connections in java?
What is drivermanager in java?
Explain the difference between inner and outer join ?
What is resultset?
What is jdbc and its advantages?
What is difference between jdbc and odbc?