Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to subtract 1 from current month
Use the ADD_MONTHS function:
ADD_MONTHS(sysdate,6) adds 6 months to the current date.
ADD_MONTHS(sysdate,-1) subtracts 1 month from the current date.
Dave
> -----Original Message-----
> From: Smith, Ron L. [mailto:rlsmith_at_kmg.com]
> Sent: Monday, September 17, 2001 11:00 AM
> To: Multiple recipients of list ORACLE-L
> Subject: How to subtract 1 from current month
>
>
> I am trying to find coding examples of date functions. I
> need to subtract 1
> from the current month. Can anyone tell me where to find this type of
> coding examples?
>
> Ron Smith
> Database Administrator
> rlsmith_at_kmg.com
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Smith, Ron L.
> INET: rlsmith_at_kmg.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: schmoldt_at_fyiowa.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Sep 17 2001 - 12:20:48 CDT