Java.Sql.IStatement.ExecuteUpdate Method
Executes the supplied SQL statement.

Syntax

[Android.Runtime.Register("executeUpdate", "(Ljava/lang/String;I)I", "GetExecuteUpdate_Ljava_lang_String_IHandler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int ExecuteUpdate (string sql, int autoGeneratedKeys)

Parameters

sql
an SQL statement to execute - an SQL INSERT, UPDATE, DELETE or a statement which does not return anything.
autoGeneratedKeys
a flag that indicates whether to allow retrieval of auto generated keys. Parameter must be one of Statement.RETURN_GENERATED_KEYS or Statement.NO_GENERATED_KEYS

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Sql.SQLExceptionif an error occurs accessing the database or if the statement produces a ResultSet.

Remarks

Executes the supplied SQL statement. This method allows control of whether auto-generated Keys should be made available for retrieval.

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1