Hello everyone.....
I am using sql loader to load the data from the text files to the oracle tables...I am facing a problem with it. The sample data has lot of null values in a column of date data type, which is also not in the default format. Can anyone please help me out with this issue.
Name Null? Type
----------------------------------------- -------- ----------------------------
P_ID NVARCHAR2(20)
DS_ID NVARCHAR2(20)
SYMPTOM VARCHAR2(30)
DS_FROM DATE
DS_TO DATE
DR_ID NUMBER(8)
DOSAGE NUMBER(3)
DR_FROM DATE
DR_TO DATE
TT_ID NUMBER(5)
RESULT VARCHAR2(20)
TT_DATE DATE
S_ID NUMBER(10)
and the loader file isload data
infile './Data_For_Project1/clinical_fact.txt'
INTO TABLE clinical_fact FIELDS TERMINATED BY '\t'
(p_ID, ds_id, symptom, ds_from"to_date(:ds_from,'YYYY-MM-DD')", ds_to"to_date(:ds_to,'YYYY-MM-DD')", dr_id, dosage, dr_from"to_date(:dr_from,'YYYY-MM-DD')", dr_to"to_date(:dr_to,'YYYY-MM-DD')", tt_id, result, tt_date"to_date(:tt_date,'YYYY-MM-DD')", s_id)
Your help is very much needed ....
Thanks a lot
[EDITED by LF: applied [code] tags]
[Updated on: Fri, 09 October 2009 12:10] by Moderator
Report message to a moderator