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

What is MIME Type?

659


What are the types of servlet?

655


Write a simple servlet program to print the contents of html.

539


Is it possible to have a constructor inside the servlet?

550


What are the supporting protocol by HttpServlet ?

649






Explain how does JSP handle run-time exceptions?

575


What are the types of an http request?

573


What is a servlet engine?

540


What are all the ways for session tracking?

586


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2074


How do I know if java is running on linux?

599


Why are http servlets used in programming?

539


How can we upload the file to the server using servlet?

539


What is the GenericServlet class?

593


What are the types of protocols supported by httpservlet ?

698