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

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL-Loader

Re: SQL-Loader

From: Ubiquitous <weberm_at_polaris.net>
Date: Fri, 19 Sep 2003 21:38:33 -0500
Message-ID: <kGqdnZD32o40IPaiXTWJkQ@comcast.com>


In article <2961656.1054801360_at_dbforums.com>, member30732_at_dbforums.com wrote:

>I've got a semicolon separated file that I have to load into an Oracle
>table with SQL-Loader. There is one field in the file (phone) I have to
>use twice. One time as it is in the file (e.g. 31612345678) and one time
>without the country code (e.g. 612345678). (So the second time I have to
>get the last 9 chars from the field).
>
>Can anyone tell me how to use the same field twice? (Take care that it
>is a semicolon separated file and not a fixed width file)

I believe there's a way to associate a PL/SQL command with the field such that you could use SUBSTR to fetch what you need from that column.

-- 
======================================================================
ISLAM: Winning the hearts and minds of the world, one bomb at a time.
Received on Fri Sep 19 2003 - 21:38:33 CDT

Original text of this message

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