View RSS Feed

Java Database

Executing Queries

Rate this Entry
by , 03-10-2012 at 07:40 AM (562 Views)
Execute method is called from statement for execution of a query.
  • execute: In case when 1st object which query returns is ResultSet, returns true. This method is used when one or more than one ResultSet objects are returned by query. ResultSet objects are retrieved that have been returned from query, by calling Statement.getResultSet repeatedly.
  • executeQuery: One ResultSet object is retuned.
  • executeUpdate: An integer is returned which presents the rows that have been affected by SQL statement. This method could be used while using UPDATE, DELETE or INSERT SQL statements.

Submit "Executing Queries" to Facebook Submit "Executing Queries" to Digg Submit "Executing Queries" to del.icio.us Submit "Executing Queries" to StumbleUpon Submit "Executing Queries" to Google

Categories
JDBC

Comments