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

1075


What do you understand by jdbc datasource?

1074


What is transaction processing in jdbc?

1047


Which jdbc drivers will run your program?

983


What is java soft framework?

1060


How can we set null value in jdbc preparedstatement?

1007


Is jdbc faster than odbc?

969


What is the JDBC syntax for using a literal or variable in a standard Statement?

1041


Explain about the drive manager class working?

1180


Why should we close database connections in java?

1194


What is drivermanager in java?

996


Explain the difference between inner and outer join ?

1104


What is resultset?

1055


What is jdbc and its advantages?

1134


What is difference between jdbc and odbc?

1066