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

Is it possible to have a constructor inside the servlet?

735


What is servlet in web technology?

764


What are all the ways for session tracking?

817


Explain the methods of request dispatcher in servlet?

718


How is an application exception handling is done using a servlet?

742


Define declaration.

805


What are some disadvantages of storing session state in cookies?

786


What is the difference between Server and Container?

866


What is the servletconfig object?

738


What are the steps that are involved in using the httpservlet class?

822


Why do we have servlet filters?

777


When jsessionid is created?

763


How do you design microservices?

815


Whether we can get deadlock situation in servlets?

797


What is servlet container. how it works?

865