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: zero filling a number

Re: zero filling a number

From: Eric Parker <eric.parkerthedross_at_virgin.net>
Date: Sun, 28 Sep 2003 09:04:42 +0100
Message-ID: <xCwdb.1564$QH3.21@newsfep4-winn.server.ntli.net>

"Troy & Michelle Dodsworth" <troydods_at_storm.ca> wrote in message news:bl5epj$pc4$1_at_news.storm.ca...
> Why does select to_number(' 123',000999) from dual
>
> return 123 rather than the expected 000123 ? since the is the suppose to
 be
> the purpose of the pattern ?
>
> Troy.
>
>

Troy

Shouldn't your SQL be :

select to_char(123,'000999') from dual

eric

--
Remove the dross to contact me directly
Received on Sun Sep 28 2003 - 03:04:42 CDT

Original text of this message

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