Udostępnij za pośrednictwem


IPreparedStatement.ExecuteQuery Method

Definition

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

[Android.Runtime.Register("executeQuery", "()Ljava/sql/ResultSet;", "GetExecuteQueryHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IResultSet? ExecuteQuery ();
[<Android.Runtime.Register("executeQuery", "()Ljava/sql/ResultSet;", "GetExecuteQueryHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ExecuteQuery : unit -> Java.Sql.IResultSet

Returns

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

Attributes

Exceptions

if a database error happens or if the SQL statement does not produce a ResultSet.

Remarks

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

Java documentation for java.sql.PreparedStatement.executeQuery().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to