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 the difference between ExecuteUpdate and
ExecuteQuery?

Answer Posted / p.l.n.kumar

ExecuteUpdate is used to execute Insert,Update and
Delete... statements.it's return type is 'int' .

ExecuteQuery is used to execute Select.... statements.It's
return type is 'Resultset' object.

Is This Answer Correct ?    45 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of getGeneratedKeys() method in Statement?

1011


What is a jdbc url?

892


Which package contains jdbc api?

1041


What is ODBC and JDBC? How do you connect the Database?

1040


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

1036


Which type of driver provides jdbc access via one or more odbc drivers?

901


How can I get information about foreign keys used in a table?

965


What is the role of class.forname while loading drivers?

1005


What is a statement?

1011


Where is mysql jdbc driver located?

1030


What does the jdbc resultsetmetadata interface?

945


How do I start debugging problems related to the JDBC API?

1022


Which is faster jdbc or odbc?

903


Is jdbc a protocol?

935


Does sql allow null values ? Can we use it within where clause ?

973