Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL Loader Load Problem
> With Oracle 7.3.4 you could use this method:
>
> LOAD DATA
> INFILE 'example.dat'
> BADFILE 'example.bad'
> insert
> INTO TABLE emp
> FIELDS TERMINATED BY ';'
> (empno POSITION(*),
> ename POSITION(*),
> job POSITION(*+2),
> mgr POSITION(*))
>
> Here are the contents of data file example.dat
>
> 7782;CLARK;;;MANAGER;7839
>
>
> 125;Peter;;;258;
> ----- Original Message -----
> From: Ken Janusz <ken.janusz_at_sufsys.com>
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Tuesday, December 18, 2001 7:15 PM
> Subject: SQL Loader Load Problem
>
>
> > I have an input file that is delimited and contains 43 fields of various
> > widths. I need to load only 3 fields into a DB table of 3 columns. 2
of
> > the fields are at the beginning of the record and 1 is the very last
field
> > in the record. How can I load only these 3 cols and ignore the other 40
> > cols I don't need without having to use an intermediate table?
> >
> > Thanks,
> > Ken Janusz, CPIM
> > Database Conversion Lead
> > Sufficient System, Inc.
> > Minneapolis, MN
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Ken Janusz
> > INET: ken.janusz_at_sufsys.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Paula Wachtmeister INET: pwachtmeister_at_afip.gov.ar Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Dec 19 2001 - 10:18:20 CST
![]() |
![]() |