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 / kundlik

execute():-execute method is used to fire DDL Command means (CREATE,ALTER,DROP Etc) on to the database,It's return type is true or false.

executeUpdate():Its used to fired DML Command on to the database. like (insert,update,delete) etc.its return type is ResultSet.


executeQuery():is used to only retrieve data from database.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are clob and blob data types in jdbc?

1094


How data can be inserted into long row column of database?

2178


What is the reason why we need a jdbcrowset like the wrapper around resultset?

1022


What is jdbc url for mysql?

1083


What is resultset in jdbc with example?

989


Which package contains jdbc api?

1090


What are the components of jdbc?

1031


please tell me the name and url path for type-4 driver ?

3238


What is a jdbctemplate?

974


What is jdbc odbc bridge?

991


Why is jdbc needed?

970


What is meant by dao?

993


What is JDBC Transaction Management and why do we need it?

1237


Why prepared statements are faster?

1010


What causes no suitable driver error?

1010