  | | | Subject: RE: Date conversion question | Subject: RE: Date conversion question 2007-10-04 - By Laimutis Nedzinskas
Back 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@(protected) [mailto:oracle-l-bounce@(protected)] 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 (See http://ORA-01821.ora-code.com): 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
|
|
 |