返回首页

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

更新日期:2024年09月11日

BackUp table vcname000001.test.t1 end

SQLAllocStmt 为使用 hdbc 指定的连接的语句句柄分配内存。
应用程序必须在提交 SQL 语句之前调用 SQLAllocStmt。
下表描述了 SQLAllocStmt 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08003
-11017
Connection not open
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1009
-11066
Invalid argument value
08S01
-11301
A protocol error has been detected. Current connection is
closed.

biginttodec() 函数将 BIGINT 类型数值转换为 decimal 类型数值。
语法

mint biginttodec(bigintv, decp)
const bigint bigintv
dec_t *decp
bigintv
要转换为 decimal 的 bigint 值。
decp
指向包含转换的结果的 decimal 变量的指针。

返回结果
0
转换成功。
<0
转换失败。