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

How do servlets work?

638


Why is httpservlet declared abstract?

669


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

664


What are the annotations used in servlet 3?

665


What is http servlet?

668






What are the advantages of Servlet over CGI?

763


Why is Servlet so popular?

683


What is the inter-servlet communication?

791


What are the life-cycle methods for a servlet?

628


When a servlet accepts a call from a client, it receives two objects. What are they?

861


What are the kinds of http requests?

687


How can we implement a jsp page?

723


If my browser does not support cookie, and my server sends a cookie instance what will happen?

730


How to get the IP address of client in servlet?

717


What is webservlet?

630