“复制”命令成功,但是垃圾数据被加载到表中。“vwload”命令出错,并显示“未指定表名”消息。如何将 csv 文件加载到 actian 表中?
* COPY TABLE airport2 () FROM '/tmp/head.csv' \g
* select * from airport2\g
qqqqqqqqqqqqqqqqqqqqqqqqqqqj
(1 row)
continue
$ /opt/Actian/VectorVW/ingres/bin/vwload –f "," –q "\"" –s 1 –l t1.log –t airport1 test /tmp/head.csv
No table name specified
Usage: vwload [options] database file ...
Try vwload --help
更新
此复制命令未完成。它显示“正在执行...”,但之后没有响应,我必须终止会话。
$ /opt/Actian/VectorVW/ingres/bin/sql test
continue
* copy table airport2 (
* m1 = char(0) comma,
* d1 = char(0) comma,
* s1 = char(0) comma,
* m2 = char(0) comma,
* m3 = char(0) comma,
* sent_date = char(0) comma,
* stat = char(0) comma,
* done_date = char(0) comma,
* params_err = char(0) nl)
* from /tmp/head.csv \g
Executing . . .