sqlldr 如何实现条件导入。将同一个文件的数据根据条件导入到同一个表中。比如:文件A 有类型1,2,3,4 我想只把类型为1,3的数据导入到table1中如何实现?
本来想用into table table1 when type=1 or type=3 ....
结果不行,
试了: insert into table1 when type=1 .....
inset into table1 when type=2.....
还是不行。
本来想用into table table1 when type=1 or type=3 ....
结果不行,
试了: insert into table1 when type=1 .....
inset into table1 when type=2.....
还是不行。
一 把文件a中的所有数据到插入到一个临时表中
二 在oracle中用pl/sql,按照条件从临时表往目标插入数据