Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Need help with SQL*Loader - skipping records

Re: Need help with SQL*Loader - skipping records

From: Andy Cowling <arc_at_lapwing.uk.sequent.com>
Date: 17 Jun 1999 08:40:36 +0100
Message-ID: <85so7rgtqj.fsf@lapwing.uk.sequent.com>


>>>>> "no0one1000" == no0one1000 <no0one1000_at_my-deja.com> writes:

    no0one1000> I know there is a way to skip columns but is there any     no0one1000> way to do an IF statement and skip an entire record?

Yes. If you can guarantee the first N bytes of the header are 'XXX' (and your data will _never_ contain 'XXX' at these positions), then you can use the following in the SQL*Loader control file to ignore the header record.

	LOAD DATA
	TRUNCATE
	INTO TABLE emp
	WHEN (1:3) != 'XXX'
	...

HTH
--
Andy Cowling
Sequent Computer Systems, Weybridge, UK Received on Thu Jun 17 1999 - 02:40:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US