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: Function TO_CHAR

Re: Function TO_CHAR

From: <sybrandb_at_yahoo.com>
Date: 4 Nov 2004 05:57:46 -0800
Message-ID: <a1d154f4.0411040557.7c565703@posting.google.com>


"Petr Benes" <benes_at_epos.cd.cz> wrote in message news:<4189e1f4.0_at_10.140.56.22>...
> Hi
>
> Expression TO_CHAR(15) returns '15'. It is correct.
> Expression TO_CHAR(15,'0999') returns ' 0015' instead '0015'.
> Tested in version 10q as well as 7.3.4.
>
> Do you know why there is the blankspace?
>
> Thanks

This accounts for the sign. The negative sign is a '-' the positive sign is a space. If you don't want that use the fm modifier in front of 0999.

Sybrand Bakker
Senior Oracle DBA Received on Thu Nov 04 2004 - 07:57:46 CST

Original text of this message

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