Statement.executeQuery

Statement.executeQuery

Interface Overview | Interface Members | This Package | All Packages

Syntax
public abstract ResultSet executeQuery( String sql ) throws SQLException
Parameters
sql
typically this is a static SQL SELECT statement
Returns
a ResultSet that contains the data produced by the query; never null
Description
Execute a SQL statement that returns a single ResultSet.

Exceptions
SQLException if a database-access error occurs.