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: oracle sysdate problem ??

Re: oracle sysdate problem ??

From: Pat Hildebrand <pat_at_ssc.upenn.edu>
Date: Thu, 12 Sep 2002 16:13:20 -0800
Message-ID: <F001.004CF267.20020912161320@fatcity.com>


Your format is asking for the month instead of the minutes
>
> Hi all,
>
> I did a select sysdate from dual, and got 04:09:39 pm,
> but my machine system time is 4:47pm, which is right.
>
> SQL> select to_char(sysdate,'mm/dd/yy hh:mm:ss am')

                                            ^^
should be mi

> from dual;
>

                       Pat
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Pat Hildebrand
  INET: pat_at_ssc.upenn.edu

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 Thu Sep 12 2002 - 19:13:20 CDT

Original text of this message

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