| Author |
Is there any difference between executeUpdate and execute?
|
thomas davis
Ranch Hand
Joined: Feb 01, 2003
Posts: 207
|
|
|
Is there any difference between executeUpdate and execute?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
In case someone sees this thread later, it was answered here
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
VIJAY Yadlapati
Ranch Hand
Joined: Aug 04, 2003
Posts: 175
|
|
executeUpdate() is special form of execute(), that only performs DML Operations, while execute() performs any SQL Operation within the limitations of the support of database driver being used. That's why executeUpdate() returns int - No. of rows affected, while execute() returns boolean depending on the previous operation performed.
|
 |
 |
|
|
subject: Is there any difference between executeUpdate and execute?
|
|
|