Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: TIMESTAMP datatype. Anyone using them?
... 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.
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On
Behalf Of Hostetter, Jay M
Sent: Monday, August 01, 2005 21:09
To: oracle-l_at_freelists.org
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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On
Behalf Of Arnold, Sandra
Sent: Monday, August 01, 2005 11:30 AM
To: oracle-l_at_freelists.org
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.
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Aug 01 2005 - 14:21:02 CDT
![]() |
![]() |