Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Date conversion question
Simple is good:
Import into staging table with all columns varchar2(4000) and do whatever conversions, checks and validations you want in pl/sql
P.s. if performance, space or pl/sql knowledge is an issue then you can try to load into the target table in one pass but I would not recommend that.
P.s.s. performance and space constraints could be lifted with external tables ( all columns varchar2(4000) of course! )
Laimutis Nedzinskas
Landsbanki Íslands hf.
Gagnagrunnsstjóri / DBA
Upplýsingatæknisvið / Gagnagrunnar
IT / Database Systems
www.landsbanki.is
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Harvinder Singh
Sent: 3. október 2007 19:44
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
Fyrirvari/Disclaimer
http://www.landsbanki.is/disclaimer
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Oct 04 2007 - 04:23:52 CDT
![]() |
![]() |