IPreparedStatement.ExecuteUpdate 方法

定义

在此对象中 PreparedStatement 执行 SQL 语句,该语句必须是 SQL 数据操作语言(DML)语句(例如 INSERTUPDATEDELETE;)或返回任何内容(如 DDL 语句)的 SQL 语句。

[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

返回

(1) SQL 数据操作语言 (DML) 语句的行计数或 (2) 0 表示不返回任何内容的 SQL 语句

属性

例外

如果发生数据库错误或 SQL 语句返回 a ResultSet.

注解

在此对象中 PreparedStatement 执行 SQL 语句,该语句必须是 SQL 数据操作语言(DML)语句(例如 INSERTUPDATEDELETE;)或返回任何内容(如 DDL 语句)的 SQL 语句。

Java文档java.sql.PreparedStatement.executeUpdate()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于