Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: misunderstanding between DEFAULTIF and NULLIF with SQLLOader
I have to ask, what's the difference between an empty field and a null field to you? Empty is the same as null to me - undefined.
That's the whole reason for the NULLIF keyword. Make spaces null prior to insert.
You can have sql statements modifying the data prior to insert. Maybe this will do what you need. You can't run the load in direct mode if you do this though.
Lisa Koivu
Oracle Database Administrator
Fairfield Resorts, Inc.
954-935-4117
-----Original Message-----
From: Maya Kenner [SMTP:maya.kenner_at_trema.com] Sent: Thursday, October 04, 2001 10:20 AM To: Multiple recipients of list ORACLE-LSubject: misunderstanding between DEFAULTIF and NULLIF with SQLLOader
Hello ,
I have a small problems because of empty fields and NULL fields.
I have a data file extracted from a non-Oracle DB where the empty field is represented by a single space char and NULL field is represented with nothing , ||| is field delimitor , #|# is line delimitor
toto||| |||#|#
tutu|||||| #|#
select * from mytable
col1 col2 col3 toto NULL tutu NULL
![]() |
![]() |