Sdílet prostřednictvím


IPreparedStatement.ExecuteUpdate Method

Definition

Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement.

[Android.Runtime.Register("executeUpdate", "()I", "GetExecuteUpdateHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int ExecuteUpdate ();
[<Android.Runtime.Register("executeUpdate", "()I", "GetExecuteUpdateHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ExecuteUpdate : unit -> int

Returns

either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing

Attributes

Exceptions

if a database error happens or if the SQL statement returns a ResultSet.

Remarks

Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement.

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

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