SQL*Loader: load tab-delimited file with NULL values [message #70578] |
Tue, 02 July 2002 11:49 |
George
Messages: 68 Registered: April 2001
|
Member |
|
|
Hi,
I want to upload the tab-delimited file into Oracle. I've made it a lot of time before for CSV files and I didn't have any problem with loading files even if there some NULL values inside (not in the end of the record which is handled by TRAILING NULLCOLS). Now I have to load tab-delimited file with NULL value in mid's columns. I can do that. I made the test example:
OPTIONS (ROWS = 1000, SILENT = ALL)
load data
infile *
APPEND
into table test
fields terminated by X'09' optionally enclosed by '"'
TRAILING NULLCOLS
(col1,
col2,
col3,
col4 DATE "MM/DD/YY HH24:MI:SS")
BEGINDATA
1 15.00 "12/23/02 0:00"
2 ";slkfdgj;sdlf" 44.33 12/21/02 13:45:00
3 gonegone 138.00 12/23/02 0:00
The second and the third lines are loaded without any problems. But the first one is discarded because of after "1" there are two tabs. Loader reads them like one tab and pushes 15.00 to col2 but not col2 as it is supposed to do.
Any help is appreciated
George
|
|
|
|
|
|