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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Q: how to select current time?

Re: SQL Q: how to select current time?

From: MarkP28665 <markp28665_at_aol.com>
Date: 24 Aug 1998 23:03:09 GMT
Message-ID: <1998082423030900.TAA02640@ladder01.news.aol.com>


From: m_van_basten_at_hotmail.com >>
Selecting SysDate from dual only gives the date. So how to select current time? <<

select to_char(sysdate,'format mask')
from sys.dual;

example:
to_char(sysdate,'YYYYDDD HH24:MI:SS') which would produce something like 1998200 19:00:20

See the SQL Manual for all the date mask formats.

Mark Powell -- Oracle 7 Certified DBA
- The only advice that counts is the advice that you follow so follow your own advice - Received on Mon Aug 24 1998 - 18:03:09 CDT

Original text of this message

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