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: Combine 2 fields into single field using sql loader

Re: Combine 2 fields into single field using sql loader

From: Sakthi , Raj <rajan_sakthi_at_yahoo.com>
Date: Sun, 23 Jun 2002 01:38:21 -0800
Message-ID: <F001.00484EEE.20020623013821@fatcity.com>


Couple of methods,
1. Use Position instead of delimited control file specification and use SQL to massage to the ata For eaxmple
my_date position(1:19)
"substr(:mydate,1,10)||substr(:mydate,11)

Of course you can do this directly as
METHOD 2:

my_date position(1:10) filler,
my_time   position(11:19) filler,
my_final_date  position(1:1) ":my_date" || ":my_time"

HTH
RS
--- Stephane Faroult <sfaroult_at_oriole.com> wrote:
> Rick_Cale_at_teamhealth.com wrote:
> >
> > Hi DBAs,
> >
> > I am trying to combine 2 fields into 1 field to
> insert into a date field
> > using sql loader.
> >
> > The csv files has the first 2 fields as follows
> >
> > 01/01/2002,00:00:01,...,
> >
> > Can someone help on how to combine the 1st two
> fields to insert into a
> > single date field.
> >
> > Thanks
> > Rick
> >
>
> man sed ?
>
> --
> Regards,
>
> Stephane Faroult
> Oriole Software
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: Stephane Faroult
> INET: sfaroult_at_oriole.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).


Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Sakthi , Raj
  INET: rajan_sakthi_at_yahoo.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).
Received on Sun Jun 23 2002 - 04:38:21 CDT

Original text of this message

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