以 64 位带符号整数形式获取指定列的值。
[Visual Basic]
Public Function GetInt64( _
ByVal i As Integer _
) As Long
[C#]
public long GetInt64(
int i
);
[C++]
public: __int64 GetInt64(
int i
);
[JScript]
public function GetInt64(
i : int
) : long;
64 位带符号整数形式的指定列的值。
| 异常类型 | 条件 |
|---|---|
| InvalidCastException | 指定的强制类型转换无效。 |
| DB2Exception | 转换无效。 |
不执行转换。要检索的数据必须为 DB2Type.BigInt。
| DB2Type 数据类型 | DB2 数据类型 | Informix 数据类型 |
|---|---|---|
| BigInt | BIGINT | INT8 和 SERIAL8 |
在调用此方法前调用 IsDBNull 以检查空值情况。