返回首页

gbase数据、南大通用产品文档:GBase8a

更新日期:2024年09月11日

GetUInt32 方法 (Int32)
根据给定的序号,获取指定列的32 位无符号整数值。

语法
[Visual Basic]
Public Function GetUInt32 ( _

column As Integer _
) As UInteger
[C#]
public uint GetUInt32(

int column
)

参数
1) column :从0 开始的列序数

函数原型:
sword
GCIDateTimeGetDate(dvoid *hndl,
GCIError *err,
CONST GCIDateTime *date,
sb2 *yr,
ub1 *mnth,
ub1 *dy



);
功能描述:

获取GCIDateTime 中的日期,包括年、月、日。
参数说明:
hndlp(输入)
上下文或者环境句柄

errhp(输入)


错误信息句柄,该接口调用失败时,错误信息会存在该句柄上。
datetime(输入)
日期时间
yr(输出)
单位:年
mnth(输出)
单位:月。
dy(输出)
单位:日。

返回值:

如果执行成功,返回GCI_SUCCESS,否则返回GCI_ERROR

SQLColAttributes 返回结果集章列的描述符消息。
它不能用于返回标记列的信息(列 0)。描述符消息作为字符串,32 位描述符相关值或整
数值返回。
下表描述了 SQLColAttributes 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
01004
-11003
Data truncated
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1002
-11062
Invalid column number
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1090
-11071
Invalid string or buffer length
S1091
-11072
Descriptor type out of range

GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 214 -
SQLSTATE
错误值
错误消息
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
SQLColAttributes 可以返回 SQLPrepare 或 SQLExecute 在 SQLPrepare 之后,
SQLExecute 之前调用的任何 SQLSTATE。具体取决于数据源何时评估与 hstmt 关联的
SQL 语句。