To subtract a minute you can do it this way

 select to_char(sysdate,'DD-MON-YYYY HH24:mi:ss') ,
 to_char((sysdate - 1/(24*60)),'DD-MON-YYYY HH24:mi:ss')
 from dual;

Hope this answers your query




John Dunn <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

04/11/02 04:38 PM
Please respond to ORACLE-L

       
        To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
        cc:        
        Subject:        subtract minute from date/time



I want to subtract a  minute from a date/time

How can I do this?

John

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: John Dunn
 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