Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Q: SQL*Loader NULLIF in date
Ralf Bender wrote:
> Hello
>
> i got a stupid problem here. i've got to load thousands of data with
> sql*loader. normally no problem. but there are a few records which i
> don't know to handle with.
>
> the last field is my problem:
>
> 30106053;1WES02;4082646;..
> 30109055;1WES03;4085598;..
> 30121980;1WES05;4098442;..
>
> normally it's a date here. now i want do write as NULL in db. but how?
>
> NULLIF date=blanks, should not be right, because it is not blank
>
> thx for helping
> ralf
>
ok, not two hours later i got it :-)
datum "decode(trim(to_char(:datum)),:datum,null,:datum)" Received on Thu Nov 06 2003 - 10:10:34 CST