IStatement.AddBatch(String) Method

Definition

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

[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);
abstract member AddBatch : string -> unit

Parameters

sql
String

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

Attributes

Exceptions

if an error occurs accessing the database or the database does not support batch updates.

Remarks

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