Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: update date filed in tables?
Patrick Suppes wrote
> To say this in yet a different way, Yongge's assertion that the sql clause
"where
> thrudate = to_date ('31-dec-99', 'dd-mon-yy') " does not exactly match
his/her
> stated goal of updating thrudates with the formatted value of '31-dec-99'.
The
> specific gaps I identified could be fixed by using a character-based
comparison
> instead of using a date-based comparison.
You are right. I misunderstood the idea behind your solution, and should not have reacted the way I did. Excuse me for that.
To enhance your solution a bit, I guess
where to_char(thru_date, 'dd-mon-yy') = '31-dec-99'
would be the best solution. Yongge: note that 'mon' returns 'dec' while 'Mon' returns 'Dec', etc.
Arjan. Received on Sat Apr 24 1999 - 03:22:17 CDT
![]() |
![]() |