Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Question about SYSDATE
In article <7ro1ps$1vp$1_at_keeks.cyber.ee>,
"Erkki Arus" <aphex_at_spin.ee> wrote:
> Hi
>
> I have a table xxx with column yyy, which is specified as DATE, and
the
> default value is set to SYSDATE. Problem is, I get the date like DD-
MM-YY,
> put I need date and time like DD-MM-YYYY HH24:MI:SS. What I have done
wrong?
Nothing, except you are using a default mask which does not show the time. Try..
SELECT TO_CHAR(yyy,'DD-MM-YYYY HH24:MI:SS') FROM xxx;
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Sep 15 1999 - 11:07:03 CDT
![]() |
![]() |