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
Is jdbc connection secure?
What is savepoint in jdbc?
How many types of jdbc drivers are available?
How does jdbc driver work?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
What is layer in communication?
How can we execute stored procedures?
How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?
explain about special characters?
Does jdbc use odbc?
What does adapter class provide?
Why is jdbc used?
How java can be connected to a database?
How does a custom RowSetReader get called from a CachedRowSet?
Give an example of code used for setting up connection with a driver.