Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is execute(), executeUpdate() and executeQuery()
methods?

Answer Posted / ratheesh.a

executeQuery(): This is a method/function used in jdbc
programs. this method will return a 'Resulset' object.
Through this method we can access the result of the query
Usually the Select query is used here..




executeUpadte(): This method is mainly used for updating
queries.. such as 'insert,update,delete' etc... returns an
integer value which shows how many rows are updated...


execute() :What ever the sql queries we are giving in the
other 2 methods can also be include here
This will return a boolean value if it returns 'true' means
query executed successfuly else not..

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type of driver is unique in jdbc?

1022


What is jdbc url for mysql?

1078


What is odbc and jdbc drivers?

995


What are collection pools?

1018


What are the types of statements in jdbc?

1023


What does setautocommit do?

1018


Does the JDBC-ODBC Bridge work with Microsoft J++?

2361


What is jdbc driver?

937


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

1103


Can we return resultset in java?

963


What is jdbc thin client?

1009


What is jdbc odbc bridge in java?

1120


What is drivermanager in java?

993


Describe how the jdbc application works.

1077


What are the 4 types of jdbc drivers?

1088