Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: NEED HELP WITH NULLIF using sqlloader
Greg Hayes <hayford_at_hayford.demon.co.uk> schrieb:
>
Your statement works fine. But Oracle don't insert a row with _all_ fields are NULL.
Try this one:
create table testdates
(tdate date,
field varchar2(1));
and
load data
infile yourfile.dat
replace
into table testdates
(tdate position(1:6) char nullif(1:6)='000000'... (your statement),
field position(1:1))
You wil see:
tdate F
----------- - 01-JAN-99 9 02-OCT-99 9 0
HTH, Kathinka Received on Mon Nov 29 1999 - 07:11:00 CST