ITeye博客

TimesTen使用ttbulkcpcs命令错误问题

zljpp · 2012-07-13 16:54 · 数据库 · Markdown

表字段Command> desc demo ;

Table BILL.DEMO:
Columns:
*ID NUMBER NOT NULL
NAME VARCHAR2 (32) INLINE
SED VARCHAR2 (4) INLINE

1 table found.
(primary key columns are indicated with *)

文件:demo.txt
cat demo.txt
1|LIUCHUANG|RR|

使用ttBulkCpCS -i -s"|" -connStr "dsn=xx;uid=xx;pwd=xx" demo demo.txt
报错:
##ttBulkCp:FSEP=|:CHARACTERSET=ZHS16GBK

###
### Errors/warnings from file demo.txt:
###

# While processing row 1 (global row 1) in file demo.txt, line 1:
### ERROR at character 3:
### While reading value for column 2 (NAME) of type VARCHAR2(32):
### Invalid string -- strings must be enclosed in "...".
1|LIUCHUANG|RR|
# *
# (row was not inserted)

demo.txt:
0 rows inserted
1 row not inserted due to errors
1 row total (remaining rows skipped due to errors)

 

 

字符串的时候,如果是字符串,则需要增加""扩起来,

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。