0

“复制”命令成功,但是垃圾数据被加载到表中。“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 . . .
4

1 回答 1

0

没有“演员表”之类的东西。Action 是一家购买了多个数据库的公司。(https://www.actian.com/product-overview/

不幸的是,它们并没有让事情变得简单,但您似乎正在使用“ACtian X”(https://www.actian.com/data-management/actian-x-hybrid-rdbms/)或旧版本。

文档是他们拥有的一件事!,它可以在线获得,搜索他们的网站......

于 2020-05-22T18:30:34.893 回答