Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to subtract 1 from current month

RE: How to subtract 1 from current month

From: <schmoldt_at_fyiowa.com>
Date: Mon, 17 Sep 2001 10:20:48 -0700
Message-ID: <F001.0039098D.20010917103521@fatcity.com>

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US