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: TO_DATE problem

Re: TO_DATE problem

From: Kumar, Sai (EXCHANGE:PERPK:3374) <saikumar_at_nortel.com>
Date: Tue, 15 Dec 1998 16:55:59 -0500
Message-ID: <3676DAEF.10E813D6@nortel.com>


Brad McBride wrote:

> Hello,
>
> I am working with converting a flat file database into an Oracle
> database in order to make our recordkeeping more efficient. So far,
> Oracle has been working great. I am now at a point where I have all of
> the test data working the way that it should and am ready to import the
> data over from the flat files. This is where my problem comes in. I am
> having to work with a date that was stored in the flat file as (for
> example) 12/09/98. I am trying to convert it into a usable Oracle date
> by using the TO_DATE(12/09/98, 'MM/DD/YY') function but when I try this
> I get an error that states, "ORA-01858: a non-numeric character was
> found where a numeric was expected". This has been driving me nuts. Any
> help that someone could provide will be greatly appriciated.
>
> Brad McBride

Brad,

If u are using sql*loader and the position of the fields are uniform on all the rows, u can specify the date field in the following syntax in your sql*loader .ctl file :-

date_field position (01:08) date "mm/dd/yy"

Sai Received on Tue Dec 15 1998 - 15:55:59 CST

Original text of this message

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