@pdserver_local control=F:\XX\TBL_LRTEMPIN.ctl log=TBL_LRTEMPIN.log bad=TBL_LRTEMPIN.bad skip=1load data infile 'F:\DATELOAD\2016.csv' insert into table TBL_LRTEMPIN
truncate fields terminated by "," optionally enclosed by "'"
trailing nullcols (字段1,字段2)excel:
字段1 字段2
1 2
11 22
111 222我的
11 22
111 222
能进入表里,可是1,2这行数据进不去?为什么啊?
我也换使用过,append、replace 但是还是不好事,求高手!
truncate fields terminated by "," optionally enclosed by "'"
trailing nullcols (字段1,字段2)excel:
字段1 字段2
1 2
11 22
111 222我的
11 22
111 222
能进入表里,可是1,2这行数据进不去?为什么啊?
我也换使用过,append、replace 但是还是不好事,求高手!
load data Append into table test_yixl
truncate fields terminated by "," optionally enclosed by "'"
trailing nullcols (t1,t2)
我的csv
t1,t2
1,2
11,22
111,222
我的命令:
sqlldr USERID=apps/apps@vis control=test.ctl DATA=test.csv log=test.log
我的表结构:
create table test_yixl(t1 varchar2(10), t2 varchar2(10));
运行之后,完全好用。
谢谢 我忘记看log 找找原因了。
你那个csv导入的格式固定么?我想实现字段不变,但是字段的顺序可以任意!