Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Char to Date but column has many different date formats.
Hi!
I need to import a character column to a date column
but the dates or in many different formats:
Quite difficult because there are many different types of date formats:
I don't think it can be done but maybe some one has a way..
Example:
01 Aug
01 Sep
03 July
1-Aug-2000 1-Jul-2000 1-Oct-2000 1-Sep-2000 1-Sept-2000 1/2-00
I know the code should look something like:
For 15 Sep
update styles
set mod003=to_date(moc029,'dd MON');
For
15 August 2000
set mod003=to_date(moc029,'dd month yyyy');
But the problem is all will give the message
*
Because this expects that all columns have the same date format.
Is there some way I can only get the dates with the format without the error message and maybe create 1 update statement for each column...
Thanks!!!!
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Mar 24 2000 - 00:00:00 CST
![]() |
![]() |