Java.Sql.IStatement.AddBatch Method
Adds a specified SQL command to the list of commands for this Statement.

Syntax

[Android.Runtime.Register("addBatch", "(Ljava/lang/String;)V", "GetAddBatch_Ljava_lang_String_Handler:Java.Sql.IStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AddBatch (string sql)

Parameters

sql
the SQL command as a String. Typically an INSERT or UPDATE statement.

Exceptions

TypeReason
Java.Sql.SQLExceptionif an error occurs accessing the database or the database does not support batch updates.

Remarks

Adds a specified SQL command to the list of commands for this Statement.

The list of commands is executed by invoking the executeBatch method.

[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