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

What is new in JDBC 2.0?

1024


Why resultset is used in java?

935


How can I determine where a given table is referenced via foreign keys?

1002


What is jdbc stand for?

928


What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?

954


How to make updates to updatable result sets in jdbc?

906


Give steps to connect to the db using jdbc?

1017


What is jdbc thin client in oracle?

901


How can we retrieve the file in the oracle database?

969


What is database connection pooling? Advantages of using a connection pool?

1058


What are the three basic components of the odbc architecture?

926


What is the feature of jdbc v4?

1145


How to check jdbc driver version in sql server?

968


What is a rollback in jdbc?

942


What is in term of jdbc a datasource?

918