What is the difference between ExecuteUpdate and
ExecuteQuery?



What is the difference between ExecuteUpdate and ExecuteQuery?..

Answer / p.l.n.kumar

ExecuteUpdate is used to execute Insert,Update and
Delete... statements.it's return type is 'int' .

ExecuteQuery is used to execute Select.... statements.It's
return type is 'Resultset' object.

Is This Answer Correct ?    45 Yes 8 No

Post New Answer

More JDBC Interview Questions

What is the difference between Union, Unionall ?

1 Answers  


Why prepared statements are faster?

1 Answers  


i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?

8 Answers   HSBC,


Does sql allow null values ?

1 Answers  


Which jdbc driver is the fastest driver?

1 Answers  


What is the full form of jdbc and what is its purpose?

1 Answers  


How to retrieve warnings in jdbc?

1 Answers  


What is savepoint in jdbc?

1 Answers  


What is executequery in java?

1 Answers  


What is the use of JDBC DriverManager class?

1 Answers  


give me a java code snippet to connect Microsoft excel through.... I am trying alot... plz help me.

7 Answers  


What is a rollback in jdbc?

1 Answers  


Categories