Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> SQL loader - SKIP FIELD + ADD DATA
Hello everyone
I am using Oracle 7.3.2.2
I do have an ascii file to load that is look like:
number|name|address1|address2|city|zip
In the Oracle table I have several field that are mandatory but not
present into the ascii file.
Oracle table: cust_id
name address city zip can-phone can-write
Here is my control file
LOAD DATA
INFILE 'asciifile' BADFILE 'asciifile.bad'
INTO TABLE customer
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' ( cust_num, name "UPPER( :name )", address "UPPER( :address )"
----> Something missing to skip address2. FILLER doesn't work
city "UPPER( :city )" zip "UPPER( :zip )" )
There is 2 things missing in the control file.
Is anyone can find an EASY way to do this.
That has to by done each week.
I am looking forward for the answers
Daniel St-Jacques
daniel.st-jacques_at_ca.kontron.com
Received on Fri Nov 16 2001 - 15:41:45 CST
![]() |
![]() |