Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: TO_CHAR bug?
"suvinay" <suvinay_at_gmail.com> a écrit dans le message de news: 1153512454.968662.250260_at_h48g2000cwc.googlegroups.com...
| Hi,
| In a few databases, the following statements results in a missing "Z"
| at the end?
| A bug?
|
|
| SQL> select TO_CHAR(systimestamp, 'YYYY-MM-DD"T"HH24:MI:SS.FF2"Z"')
| from dual;
|
| TO_CHAR(SYSTIMESTAMP,'YYYY-MM-
| ------------------------------
| 2006-07-21T15:52:36.09
|
| //--- where is "Z" at the end?
|
| If I give two space in "Z{space}{space}" as "Z ", it works
|
| SQL> select TO_CHAR(systimestamp, 'YYYY-MM-DD"T"HH24:MI:SS.FF2"Z "')
| from dual;
|
| TO_CHAR(SYSTIMESTAMP,'YYYY-MM-DD
| --------------------------------
| 2006-07-21T15:07:29.14Z
|
|
| Help appreciated very much.
|
| Thanks.
| -- Suvinay
|
Works for me:
SQL> select TO_CHAR(systimestamp, 'YYYY-MM-DD"T"HH24:MI:SS.FF2"Z"')
2 from dual;
TO_CHAR(SYSTIMESTAMP,'YYYY-MM-
But of course a bug is neither related to a version nor to an environment.
Regards
Michel Cadot
Received on Sat Jul 22 2006 - 00:19:11 CDT