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: SQLLOADER QUESTION

Re: SQLLOADER QUESTION

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Mon, 28 Apr 2003 18:21:59 -0800
Message-ID: <F001.0058B0C5.20030428182159@fatcity.com>

Monday, April 28, 2003, 6:21:50 PM, you wrote:

HA> I try to load some data into a table by using sqlloader, the date in text
HA> file has got some format like this  04/15/89 but when I load into the table
HA> in the table it's appear as 4/15/2089 how can I load it as 04/15/1989
HA> I used DATE "mm/dd/yyy" in my control file:

You may be able to use the RR date format, as in: DATE "mm/dd/rr". Be sure to read up on it first, so you know how it works. This year, 1/1/89 should be interpreted as 1/1/1989. However, either 1/1/50, or maybe it's 1/1/49, will be interpreted as 1/1/2050 (or 2049). Those rules flip-flop later in this century.

If RR won't work, you may be able to use a SQL expression to manipulate the input date using Oracle's built-in functions. Hopefully RR will work though.

Best regards,

Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com

Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to Oracle-article-request_at_gennick.com and include the word "subscribe" in either the subject or body.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jonathan Gennick
  INET: jonathan_at_gennick.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Mon Apr 28 2003 - 21:21:59 CDT

Original text of this message

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