Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Date Comparison
The "date" you think you stored is more than just the date, it is a full datetimestamp. Your first comparison is looking for midnight on the date you stored. The second comparison is correctly retrieving the two rows where the datetimestamp is indeed greater than midnight on the date.
To get it to act the way you want, you need to either store the value as TRUNC(SYSDATE) or you need to compare WHERE TOCHAR(a,'DD-MM-YY').
You could look it up. Received on Fri Dec 13 1996 - 00:00:00 CST
![]() |
![]() |