Why is Oracle\'s to_char() function adding spaces?
to_char()
select length(\'012\'), length(to_char(\'012\')), length(to_char(\'12\', \'000\')
The format mask that you are using is fixed width and allows for a minus sign