Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: TIMESTAMP datatype. Anyone using them?
undskyld - excuses - entschuldigung - pardon - etcetera...
the delimiter character between hours/minutes/seconds in these datetime literals should be a colon. so this is the right syntax:
select *
from mytable
where delete_timestamp >= timestamp '2005-08-01 08:00:00.00'
and delete_timestamp <= timestamp '2005-08-01 08:01:00.00';
even more readable :-)
kind regards,
Lex.
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On
Behalf Of Lex de Haan
Sent: Monday, August 01, 2005 21:19
To: JHostetter_at_decommunications.com; oracle-l_at_freelists.org
Subject: 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.
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Aug 01 2005 - 14:35:42 CDT
![]() |
![]() |