返回首页

gbase数据、南大通用产品文档:GBase8a使用AUTOFILL 关键字补齐缺失数据

更新日期:2024年09月11日

建表语句:
create table t(a int,b varchar(10),c varchar(10));
数据文件:
1|first
2|second
加载过程:

GBase UP 产品手册 5 数据库管理指南
文档版本04(2021-04-21) 南大通用数据技术股份有限公司 226
gbase> load data infile 'ftp://192.168.88.141/load_data/autofill.tbl' into table t
est.t fields terminated by '|' autofill;
Query OK, 2 rows affected, 3 warnings
Task 1107 finished, Loaded 2 records, Skipped 0 records
查询入库数据:
gbase> select * from t;
+------+--------+------+
| a | b | c |
+------+--------+------+
| 2 | second | NULL |
| 1 | first | NULL |
+------+--------+------+
2 rows in set

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 语句。


GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
53