IPreparedStatement.Execute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the SQL statement in this PreparedStatement
object,
which may be any kind of SQL statement.
[Android.Runtime.Register("execute", "()Z", "GetExecuteHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Execute ();
[<Android.Runtime.Register("execute", "()Z", "GetExecuteHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Execute : unit -> bool
Returns
true
if the first result is a ResultSet
object; false
if the first result is an update
count or there is no result
- Attributes
Exceptions
if a database error happens.
Remarks
Executes the SQL statement in this PreparedStatement
object, which may be any kind of SQL statement. Some prepared statements return multiple results; the execute
method handles these complex statements as well as the simpler form of statements handled by the methods executeQuery
and executeUpdate
.
The execute
method returns a boolean
to indicate the form of the first result. You must call either the method getResultSet
or getUpdateCount
to retrieve the result; you must call getMoreResults
to move to any subsequent result(s).
Java documentation for java.sql.PreparedStatement.execute()
.
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.