What is the difference between ExecuteUpdate and
ExecuteQuery?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why “no suitable driver” error occurs?

615


Why we use jdbc instead of odbc?

494


Briefly tell about the jdbc architecture.

551


What is jdbc thin client?

499


What is the feature of jdbc v4?

482






What is device controller?

513


What is the benefit of having jdbcrowset implementation?

531


What is the use of getGeneratedKeys() method in Statement?

527


How will you perform truncation using JDBC?

575


What is jdbc and jdbc drivers?

498


How do I find ojdbc jar version?

493


What are the advantages of using preparedstatement in java?

547


What is jndi lookup?

509


What is JDBC PreparedStatement?

525


What is JDBC Statement?

563