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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL Loader - insert into multiple tables

Re: SQL Loader - insert into multiple tables

From: <rjsearle_at_gmail.com>
Date: Thu, 7 Dec 2006 22:07:16 +1000
Message-ID: <392977e50612070407p4ef66529j513c8e3b9df179c@mail.gmail.com>


Arvind,

I suggest using grep to generate the two files which can then be loaded as required.

Russell

On 12/7/06, Kumar, Arvind IN GGN SISL <arvind.kumar2_at_siemens.com> wrote:
>
> Hi Friends,
>
>
>
> I have a text datafile in the following format
>
>
>
> Cln,cs001,04,Y
>
> Cmp,cs001,45
>
> Cmp,cs001,29
>
> Cln,cs002,08,Y
>
> Cmp,cs002,65
>
> Cmp,cs002,80
>
>
>
>
>
> Now i want to load all the records starting with 'CLN' into table1
> and all the records starting with 'CMP' into table 2 using sql loader, what
> would be control file ?
>
>
>
>
>
>
>
> Thanks
>
> *Arvind Kumar*
>
> Associate Consultant
> Siemens Information Systems Limited
> e-mail : *arvind.kumar2_at_siemens.com*
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 07 2006 - 06:07:16 CST

Original text of this message

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