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:[EMAIL PROTECTED]]
> 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
> [EMAIL PROTECTED]
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Smith, Ron L.
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to