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

Re: Sql*Loader

From: Oweson Flynn <Oweson.Flynn_at_liberty.co.za>
Date: Wed, 31 Jan 2001 05:50:00 -0800
Message-ID: <F001.002A58C4.20010131054540@fatcity.com>

What about something like this (in your control file) :

DummyDate           varchar2(01:09),
UserName              varchar2(10:17),
BirthDate                date(18:21) "TO_DATE( :DummyDate || :BirthDate,
'RRRR-MM-DD HH24:MI' )" I can't test it here at work, but it might prompt some ideas ...

Regards
Oweson Flynn



Certified Oracle DBA
The Flynn Consultancy
Tel: 082-600-7-006
Fax: (011) 782-9313
EMail: oef_at_icon.co.za
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Wednesday, January 31, 2001 1:16 PM

> Hi
>
> I've got the following entries in a sql*Loader import file
> ---------------------
> 2000-02-25JOHN 0608
> 2000-02-28PETE 0718
> ---------------------
> 123456789012345678901
>
> Char 1 to 9 and 18 to 21 make up the date and time, ie '2000-02-25 06:08'
> ('RRRR-MM-DD HH24:MI')
>
> I need to import this information into a table with two columns,
"USERNAME"
> (1st) & "BIRTHDATE" (2nd), but I'm struggeling using Sql*Loader to
> concatenate the two fieds.
>
> create table USER_BIRTHDATES
> (USERNAME varchar2(20),
> BDATE date);
>
> Any ideas.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Johan Locke_at_i-Commerce Services
> INET: Johan.Locke_at_za.didata.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).
>


This message may contain information which is confidential and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and return and/or destroy the original message.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Oweson Flynn
  INET: Oweson.Flynn_at_liberty.co.za

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 Jan 31 2001 - 07:50:00 CST

Original text of this message

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