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 jdbc in dbms?

963


What does executeupdate return in jdbc?

935


What does jdbc stand for?

894


What is odbc. how is it related to sql cli?

994


Explain the locking system in jdbc & its types?

912


What is the return type of class.forname() method?

912


When do we get java.sql.SQLException: No suitable driver found?

916


Is java a database?

886


What are the methods which can verify the cursor particular position?

960


How does jdbc work?

847


What are four types of JDBC driver?

1065


What is a jdbctemplate?

890


Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?

925


Is jdbc open source?

810


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

2244