Executes the SQL query in this PreparedStatement
object
and returns the ResultSet
object generated by the query.
ResultSet
object that contains the data produced by the
query; never null
SQLException | if a database access error occurs;
this method is called on a closed PreparedStatement or the SQL
statement does not return a ResultSet object | |
SQLTimeoutException | when the driver has determined that the
timeout value that was specified by the setQueryTimeout
method has been exceeded and has at least attempted to cancel
the currently running Statement |
Diagram: Statement