Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> to_char statement
Hi
This looks like a problem to me unless I'm missing something.
In SQLPlus I'm trying the following:
SQL> select to_char(sysdate,'ddTH fmMonth YYYY HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'DDTHFMMONTH
SQL> The seconds lose the leading 0
Whereas without the fm I get:
SQL> select to_char(sysdate,'ddTH Month YYYY HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'DDTHMONTHYY
SQL> With the seconds shown as 03 which is what I want.
Oracle 8.1.6 on Linux
Is this a bug or am I missing something?
TIA Nick
-- Nick Taylor Say No to Spammers - What You See Isn't What You Get to Email MeReceived on Mon Aug 20 2001 - 09:59:37 CDT
![]() |
![]() |