IStatement.AddBatch(String) 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.
Adds the given SQL command to the current list of commmands for this
Statement
object.
[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);
[<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")>]
abstract member AddBatch : string -> unit
Parameters
- sql
- String
typically this is a SQL INSERT
or
UPDATE
statement
- Attributes
Exceptions
if an error occurs accessing the database or the database does not support batch updates.
Remarks
Adds the given SQL command to the current list of commmands for this Statement
object. The commands in this list can be executed as a batch by calling the method executeBatch
.
<strong>Note:</strong>This method cannot be called on a PreparedStatement
or CallableStatement
.
Added in 1.2.
Java documentation for java.sql.Statement.addBatch(java.lang.String)
.
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.