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...

What is the difference between ExecuteUpdate and
ExecuteQuery?

Answer Posted / balu

executeUpdate() --is used for executing non-select
statements

executeQuery() - is used for executing select statements

The above two are valid in SQLServer
Note: but i think in case of Oracle executequery()may also
accept non-select statements

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain jsessionid and when is it created?

1110


What are the common methods that are included in the http servlet class?

1038


Explain jsessionid?

1032


What are the benefits of using servlet over cgi?

1052


What is the major difference between servlet and applet?

998


What are the new features added to servlet 2.5?

1094


What are the different ways we can maintain state between requests?

1095


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1032


What does the term localization refer to?

1105


Why is a constructor needed in a servlet even if we use the init method?

1131


What are the kinds of http requests?

1035


What is ServletContext object?

1098


What is the difference between CGI and Servlet?

1077


How can an existing session be invalidated?

1166


Servlet is pure java object or not?

1192