Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: to_char (33, '0009') adds an extra white space

Re: to_char (33, '0009') adds an extra white space

From: <sybrandb_at_yahoo.com>
Date: 9 Jan 2006 05:44:38 -0800
Message-ID: <1136814278.434529.146080@g14g2000cwa.googlegroups.com>


Nothing wrong. Oracle adds automatically a '-' for negative numbers and a ' ' for positive numbers.
(As documented).
If you don't want that prefix the format with 'fm', so to_char(33,'fm0009')

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Mon Jan 09 2006 - 07:44:38 CST

Original text of this message

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