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

Home -> Community -> Usenet -> c.d.o.server -> Time in a DATE field

Time in a DATE field

From: Paul <pst5183_at_cavtel.net>
Date: Sat, 15 Dec 2001 15:09:21 -0500
Message-ID: <3C1BADF1.1000103@cavtel.net>


I use SYSDATE all the time to auto-populate date fields in various tables. Both through the use of the DEFAULT function on a column definition and through the use of Triggers applied to tables. Until now it was not necessary to save the exact time of a given transaction, only the date.
I know that using the TO_CHAR function and formating I can get the time out of SYSDATE " select TO_CHAR(sysdate,'fmHHMMSS') from dual; " but how do I put this time back into a date field?

Help, how can I change the load of a DATE field to save the time of the transaction by making use of the function SYSDATE?

Thanks for any assistance.

Paul Teague Received on Sat Dec 15 2001 - 14:09:21 CST

Original text of this message

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