| Author |
execute() vs executeUpdate()
|
Rauhl Roy
Ranch Hand
Joined: Aug 01, 2006
Posts: 401
|
|
Hi, May I know what is the difference betweet execute() and executeUpdate(). As far as I know executeUpdate() dont support select statements. execute() supporots all. If any, please let me know. Regards, rahul.
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
Another main difference in these execute() methods is about returning the value by execute these methods. like: execute() It returns boolean value executeQuery() it returns resultset executeUpdate() It returns integer
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Scott Selikoff
Saloon Keeper
Joined: Oct 23, 2005
Posts: 3666
|
|
|
Generally speaking you almost always use executeUpdate or executeQuery since execute() by itself does not give you much information. I'd recommend consulting the APIs for more details.
|
My Blog: Down Home Country Coding with Scott Selikoff
|
 |
 |
|
|
subject: execute() vs executeUpdate()
|
|
|