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 a datasource in java?
What is jdbc in dbms?
Give steps to connect to the db using jdbc?
What is savepoint in jdbc?
What is a jdbc connection?
What is a rollback in jdbc?
Briefly tell about the jdbc architecture.
How many ways can you update a result set?
Why do we use jdbc in java?
How can we disable a constraint ?
How to connect html page to database using jdbc?
Which database is used for java?
How can I write to the log used by DriverManager and JDBC drivers?
What is difference between jdbc and odbc?
What is the different between ResultSet and RowSet?