LOAD DATA 
INFILE 'D:\CUSTOMER\DATA\AccoRequest_20040403.tmp'
APPEND
INTO TABLE TACCOREQUEST_TEMP
(
  c_businflag POSITION(1: 3) CHAR NULLIF c_businflag=BLANKS,
  c_tano CHAR "06"
)字段c_tano char(2) not null在开发机windows2000上运行结果是:表内数据正常,字段c_tano的值是预期值"06"
在客户机xp上运行结果是:表内字段c_tano的值是"6"+space
请教各位高手,问题出在哪里?是否控制文件还有更严格的约束我忽略了?

解决方案 »

  1.   

    请教
    文本数据格式如下:
    2|             1.10| 10 |             1,000.00|03
    3|        3,000.10| 10 |        1,111,000.00|03
    控制文件如下:
    load data
    infile 'e:\xx.txt'
    append into table txx
    (act_1 char terminated by  '|',
     txn_2 char terminated by  '|' ,
     proc_3 char terminated by  '|',
     txn_4 char terminated by  '|',
     new_5 char terminated by whitespace) 
    其中txn_2,new_5在txx表中为number(13,2)类型的数据。其中,号怎么处理 
    请大家给予帮助,谢谢