IResultSet.UpdateBoolean 方法

定义

重载

名称 说明
UpdateBoolean(Int32, Boolean)

使用 boolean 值更新指定的列。

UpdateBoolean(String, Boolean)

使用 boolean 值更新指定的列。

UpdateBoolean(Int32, Boolean)

使用 boolean 值更新指定的列。

[Android.Runtime.Register("updateBoolean", "(IZ)V", "GetUpdateBoolean_IZHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateBoolean(int columnIndex, bool x);
[<Android.Runtime.Register("updateBoolean", "(IZ)V", "GetUpdateBoolean_IZHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateBoolean : int * bool -> unit

参数

columnIndex
Int32

第一列为 1,第二列为 2,...

x
Boolean

新列值

属性

例外

如果发生数据库错误,则为

注解

使用 boolean 值更新指定的列。 updater 方法用于更新当前行或插入行中的列值。 updater 方法不更新基础数据库; updateRow 而是调用或 insertRow 方法来更新数据库。

已在 1.2 中添加。

适用于 . 的 java.sql.ResultSet.updateBoolean(int, boolean)Java 文档

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

适用于

UpdateBoolean(String, Boolean)

使用 boolean 值更新指定的列。

[Android.Runtime.Register("updateBoolean", "(Ljava/lang/String;Z)V", "GetUpdateBoolean_Ljava_lang_String_ZHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateBoolean(string? columnLabel, bool x);
[<Android.Runtime.Register("updateBoolean", "(Ljava/lang/String;Z)V", "GetUpdateBoolean_Ljava_lang_String_ZHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateBoolean : string * bool -> unit

参数

columnLabel
String

使用 SQL AS 子句指定的列的标签。 如果未指定 SQL AS 子句,则标签是列的名称

x
Boolean

新列值

属性

例外

如果发生数据库错误,则为

注解

使用 boolean 值更新指定的列。 updater 方法用于更新当前行或插入行中的列值。 updater 方法不更新基础数据库; updateRow 而是调用或 insertRow 方法来更新数据库。

已在 1.2 中添加。

适用于 . 的 java.sql.ResultSet.updateBoolean(java.lang.String, boolean)Java 文档

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

适用于