`
zljpp
  • 浏览: 255610 次
社区版块
存档分类
最新评论

TimesTen使用ttbulkcpcs命令错误问题

 
阅读更多

表字段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)

 

 

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

2
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics