---
title: "TimesTen使用ttbulkcpcs命令错误问题 "
author: "zljpp"
date: "2012-07-13T16:54:32Z"
tags: []
categories: ["数据库"]
slug: "timesten-ttbulkcpcs"
draft: false
lastmod: "2012-07-13T16:54:32Z"
id: 1591817
url: "https://zljpp.iteye.com/blog/1591817"
---

表字段Command&gt; 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)

 

 

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