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

What is executeupdate in java?

828


Give steps to connect to the db using jdbc?

967


Expalin the method of calling a stored procedure from jdbc.

912


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

994


What is jdbc servlet?

913


What is the full form of jdbc?

959


what happen if we set JDBC string to NULL?

3337


How can we move the cursor in a scrollable result set?

893


What is a jdbctemplate?

882


Discuss the procedure of retrieving warnings?

925


What is jdbc and its types?

896


What is meant by jdbc?

879


How can you retrieve data from the resultset using jdbc?

990


State the different connection methods used for creating different types of sql.

919


Which is faster jdbc or odbc?

845