Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I find jdbc version?

1007


What is Apache DBCP API?

1014


What is ojvm used for?

988


Briefly tell about the jdbc architecture.

999


What is the difference between client and server database cursors?

1180


What is jdbc servlet?

968


What do you mean by odbc?

1027


What are the differences between setmaxrows(int) and setfetchsize(int)?

1065


How many types of statements are there in jdbc?

934


Prepared statements are faster. Why?

1054


Can resultset be null in java?

932


What is a JDBC 2.0 DataSource?

975


What is encrypted connection?

1012


How will you perform truncation using JDBC?

1009


What is the purpose of jdbc resultset interface?

991