Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: migrating a date and varchar field into 1 date field

RE: migrating a date and varchar field into 1 date field

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Fri, 9 Jul 2004 11:54:45 -0400
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CF09660BB9@bosmail00.bos.il.pqe>


Ryan,

Seems to me, an expression like:
to_date(to_char(trunc(date_col),'YYYY-MM-DD')||' '||time_col,'YYYY-MM-DD = HH24:MI:SS')

would do the trick, assuming time_col is of the format 'HH24:MI:SS'. If = not, adjust
accordingly, but that's the idea.

-Mark

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of ryan.gaffuri_at_comcast.net
Sent: Friday, July 09, 2004 11:46 AM
To: oracle-l_at_freelists.org
Subject: migrating a date and varchar field into 1 date field

I'm migrating some old data from a progress database. I was given a data = extract that was sql loaded into Oracle. I have two columns date_col (has the proper month,day,year) and is a date type time_col(has the proper time in minutes, seconds, etc...) and is a = varchar field
anyway to dummy it up so I can get both of these into the same column? = the date_col has an incorrect time of day.=20



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html

-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Fri Jul 09 2004 - 11:04:12 CDT

Original text of this message

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