Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle question to get Date minus 1
I found some information on this webpage. Hope it helps.
I got this from http://www.orafusion.com/art_dt.htm
Date arithmetic and date functions :
Adding / subtracting days to / from dates is as simple as adding numbers. Witness:
--subtract 10 days
SQL> select dt - 10 from date_test;
DT-10
This also works for hours, minutes and seconds:
--subtract 3 hrs from date
SQL> select dt-3/24 from date_test;
DT-3/24
![]() |
![]() |