Share via


PreparedStatement.executeQuery

Interface Overview | Interface Members | This Package | All Packages

Syntax

public abstract ResultSet executeQuery() throws SQLException

Returns

a ResultSet that contains the data produced by the query; never null

Description

A prepared SQL query is executed and its ResultSet is returned.

Exceptions

SQLException if a database-access error occurs.