Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Question about SYSDATE
A copy of this was sent to "Erkki Arus" <aphex_at_spin.ee>
(if that email address didn't require changing)
On Wed, 15 Sep 1999 15:02:51 +0300, you 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?
>
select to_char( yyy, 'dd-mm-yyyy hh24:mi:ss' ) from xxx;
will get it. the default date format doesn't show the time component (but it is there)
>Thanks.
>
>Regards, Erkki Arus
>e-mail: erkki_at_spin.ee
--
See http://govt.us.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'...
Current article is "Part I of V, Autonomous Transactions" updated June 21'st
Thomas Kyte tkyte_at_us.oracle.com Oracle Service Industries Reston, VA USA
Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Wed Sep 15 1999 - 07:19:30 CDT
![]() |
![]() |