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 -> Re: Timestamps in Oracle, Newbie question!

Re: Timestamps in Oracle, Newbie question!

From: nooruddin <nooruddin76_at_telebot.net>
Date: Tue, 13 Jul 1999 11:35:27 +0530
Message-ID: <7mfpeo$ogj$1@news.vsnl.net.in>


I think we can format the timestamp to format you mentioned that is

yyyymmdd-hh.mm.ss with the following

here's a select statement

select to_char(sysdate,'yyyymmdd-hh.mm.ss') from dual;

try this out... and let me know what happened.

bye

Paolo Rossi wrote in message <378cbbdf.4264952_at_news.tin.it>...
>Hi!
>We are trying to migrate an application from DB2 UDB 5.2 to Oracle 8
>and are encountering some problems with timestamp fields!
>
>The problem lies in the fact that in DB2 timestamp fields have a
>format like yyyymmdd-hh.mm.ss.xxxxxx which is something we have not
>been able to obtain in Oracle!
>
>Could anyone please tell me how timestamps are treated in Oracle and
>how can I format such fields in a as close as possible way to the DB2
>format, in order to maintain the application as transparent as
>possible to the DB platform in use?
>
>TIA
>
>Paolo Rossi
>
Received on Tue Jul 13 1999 - 01:05:27 CDT

Original text of this message

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