Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Comparing Dates
Justin,
I know my answer seems to be strange, but it's the only one I know. I believe Oracle provides only one method to compare dates, which is the months_between function. It returns number of months between the two dates, and it can be floats (if difference can not be exactly expressed in months)
select months_between(date1,date2) from table
regards,
Fred
Tay Hwey Chen a écrit dans le message
<01bea816$052c78a0$d04a17cb_at_prabbit.labyrinth.net.au>...
>Does anybody know how to compare dates to determind the number of days
>between them in PL/SQL?
>
>
>
>Regards,
>
>
>Justin
Received on Thu May 27 1999 - 04:31:49 CDT
![]() |
![]() |