語言

IResultSet.UpdateShort 方法

定義

多載

名稱 Description
UpdateShort(Int32, Int16)

更新指定欄位並設定值 short 。

UpdateShort(String, Int16)

更新指定欄位並設定值 short 。

UpdateShort(Int32, Int16)

更新指定欄位並設定值 short 。

[Android.Runtime.Register("updateShort", "(IS)V", "GetUpdateShort_ISHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateShort(int columnIndex, short x);
[<Android.Runtime.Register("updateShort", "(IS)V", "GetUpdateShort_ISHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateShort : int * int16 -> unit

參數

columnIndex
Int32

第一欄是1,第二欄是2,...

x
Int16

新的欄位值

屬性

例外狀況

如果資料庫出錯。

備註

更新指定欄位並設定值 short 。 更新器方法用於更新當前列或插入列的欄位值。 更新器方法不會更新底層資料庫;取而代 updateRow 之的是呼叫 OR insertRow 方法來更新資料庫。

在 1.2 版本中加入。

Java 文件 java.sql.ResultSet.updateShort(int, short)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

UpdateShort(String, Int16)

更新指定欄位並設定值 short 。

[Android.Runtime.Register("updateShort", "(Ljava/lang/String;S)V", "GetUpdateShort_Ljava_lang_String_SHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void UpdateShort(string? columnLabel, short x);
[<Android.Runtime.Register("updateShort", "(Ljava/lang/String;S)V", "GetUpdateShort_Ljava_lang_String_SHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UpdateShort : string * int16 -> unit

參數

columnLabel
String

該欄位的標籤,並以 SQL AS 子句指定。 若未指定 SQL AS 子句,則標籤為欄位名稱

x
Int16

新的欄位值

屬性

例外狀況

如果資料庫出錯。

備註

更新指定欄位並設定值 short 。 更新器方法用於更新當前列或插入列的欄位值。 更新器方法不會更新底層資料庫;取而代 updateRow 之的是呼叫 OR insertRow 方法來更新資料庫。

在 1.2 版本中加入。

Java 文件 java.sql.ResultSet.updateShort(java.lang.String, short)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於