PrepAway - Latest Free Exam Questions & Answers

what function returns an int containing the affected row count for INSERT, UPDATE, or DELETE statements?

In JDBC, what function returns an int containing the affected row count for
INSERT, UPDATE, or DELETE statements?

PrepAway - Latest Free Exam Questions & Answers

A.
executeUpdate(.

B.
execute(.

C.
Update(.

D.
runUpdate(.

E.
SQLUpdate(.

Explanation:
According to the online Java tutorial provided by Sun at java.sun.com
executeUpdate(. returns an int containing the affected row count for INSERT,
UPDATE, or DELETE statements, or zero for SQL statements that do not return
anything, like DDL statements.


Leave a Reply