RE: TIMESTAMP datatype. Anyone using them?

  • From: "Lex de Haan" <lex.de.haan@xxxxxxxxxxxxxx>
  • To: <JHostetter@xxxxxxxxxxxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 1 Aug 2005 21:18:37 +0200

... or alternatively, use timestamp literals:
 
select * 
from   mytable
where  delete_timestamp >= timestamp '2005-08-01 08.00.00.00000'
and    delete_timestamp <= timestamp '2005-08-01 08.01.00.00000';
this is slightly more readable, independent of NLS settings,
and you don't rely on Oracle for implicit datatype conversion.


kind regards,

Lex.

------------------------------------------------------------------
Steve Adams Seminar  <http://www.naturaljoin.nl/events/seminars.html>
http://www.naturaljoin.nl/events/seminars.html
------------------------------------------------------------------


  _____  

From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On
Behalf Of Hostetter, Jay M
Sent: Monday, August 01, 2005 21:09
To: oracle-l@xxxxxxxxxxxxx
Subject: RE: TIMESTAMP datatype. Anyone using them?


Yes, we are using them on 9.2.0.5 on AIX.  What is the exact problem that you
are having?
 
select * 
from mytable
where delete_timestamp >= to_date('080120050800','mmddyyyyhh24mi')
  and delete_timestamp <= to_date('080120050801','mmddyyyyhh24mi');
 
Jay Hostetter
Oracle DBA
D&E Communications
Ephrata, PA USA


  _____  

From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On
Behalf Of Arnold, Sandra
Sent: Monday, August 01, 2005 11:30 AM
To: oracle-l@xxxxxxxxxxxxx
Cc: Augustus, Christopher
Subject: TIMESTAMP datatype. Anyone using them?



Is anyone using the TIMESTAMP datatype?  We are thinking about using them but
are having a problem with queries using the BETWEEN clause.  If you are using
them, how are you querying them for date ranges?

 

Thanks,

Sandra Arnold

Senior DBA

NCI Information Systems

Oak Ridge, TN






**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use
of the individual or entity to which they are addressed and may contain
information that is privileged, proprietary and confidential. If you are not the
intended recipient, you may not use, copy or disclose to anyone the message or
any information contained in the message. If you have received this
communication in error, please notify the sender and delete this e-mail message.
The contents do not represent the opinion of D&E except to the extent that it
relates to their official business.     
BEGIN:VCARD
VERSION:2.1
N:de Haan;Lex
FN:Lex de Haan
ORG:Natural Join B.V.
TEL;WORK;VOICE:+31.30.2515022
TEL;HOME;VOICE:+31.30.2518795
TEL;CELL;VOICE:+31.62.2955714
TEL;WORK;FAX:+31.30.2523366
ADR;WORK:;;Pieter Breughelstraat 10;Utrecht;;3583 SK;Netherlands
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Pieter Breughelstraat 10=0D=0AUtrecht 3583 
SK=0D=0ANetherlands
URL;WORK:http://www.naturaljoin.nl
EMAIL;PREF;INTERNET:lex.de.haan@xxxxxxxxxxxxxx
REV:20040224T160439Z
END:VCARD

Other related posts: