Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: to_char question
The space allows for a minus.
Use 'FM0000'
-- Jonathan Lewis Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk Phil R Lawrence wrote in message <8r2q9n$kig_at_fidoii.CC.Lehigh.EDU>...Received on Fri Sep 29 2000 - 15:32:59 CDT
>Why does:
> select 'C' || to_char(1,'0000') TEST from dual;
>
>result in:
> TEST
> ------
> C 0001
>
>The issue is the un-asked for space in front of the zeroes!
>
>Thanks,
>Phil R Lawrence
>
>
![]() |
![]() |