Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Date Problems with Where clause - Oracle 7.3.2
I am trying to write a query to return all rows where my_date = a date I
pass. However, I seem to be running into a problem with precision on
dates.
Here's an example:
select * from my_table where my_date = to_date('07/08/1998',"MM/DD/YYYY)
Even though I have a row in this table with the same date, it will not be returned. My guess is that because this date also contains the time 3:00 AM, we don't have a perfect match. So far, I haven't figured out how to limit the precision to the day. The only two workarounds I can think of are to do these:
Thanks,
Ben Geyer
Caterpillar, Inc.
geyer_ben_a_at_cat.com
Received on Wed Jul 08 1998 - 13:41:44 CDT
![]() |
![]() |