Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Date Arithmetic
three months ago:
add_months(sysdate, -3)
As the unit of a date is a day, addition and substraction of days and/or
fractions of a day is possible.
Hth,
Sybrand Bakker, Oracle DBA
Stephen Hurrell <hurrells_at_hotmail.com> schreef in berichtnieuws
3925787F.1BE1DF9_at_hotmail.com...
> Hello.
>
> What is the simplest and most readable method to do date arithmetic in
> SELECT statements.
> Particularly the types of WHERE clauses like:
>
> test_date > "three months ago"?
>
> --
> STeve
>
>
Received on Fri May 19 2000 - 00:00:00 CDT
![]() |
![]() |