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

boolean execute()
Executes the SQL statement in this PreparedStatement
object, which may be any kind of SQL statement.

ResultSet executeQuery()
Executes the SQL query in this PreparedStatement object and
returns the ResultSet object generated by the query.

int executeUpdate()
Executes the SQL statement in this PreparedStatement
object, which must be an SQL INSERT, UPDATE or DELETE
statement; or an SQL statement that returns nothing, such
as a DDL statement.

Is This Answer Correct ?    39 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about multiple implementations and drive manager?

991


When do we use execute method in java jdbc?

927


Why do we use jdbc in java?

971


What are the different types of locking in JDBC?

949


State the different connection methods used for creating different types of sql.

919


What is represented by the connection object?

1015


What are types of jdbc drivers?

947


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

930


How can you make the connection using jdbc?

985


Why do we need a jdbcrowset like wrapper around resultset?

1188


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

976


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

941


Is jdbc an api?

1027


What are the differences between execute, executequery, and executeupdate?

903


Why we use jdbc instead of odbc?

916