Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Date conversion question
The simplest way would probably be to define an oracle external table of
just lines of the appropriate length, then read the data as lines and
parse each line character by character into the format you require, then
insert the parsed data into a standard oracle table. Pretty standard
stuff...
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Harvinder Singh
Sent: Wednesday, October 03, 2007 2:44 PM
To: oracle-l
Subject: Date conversion question
Hi,
We have a flat file that contains a column and the values are stored as:
991123
421
60823
0
70930
Now we are moving data from flat file to table and this column will be inserted into Date dataype column, What is the way to insert into this table and avoid "ORA-01821: date format not recognized" errors.
Thanks
--Harvinder
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Oct 04 2007 - 07:37:59 CDT
![]() |
![]() |