envisity=# SELECT '''' || to_char(1234, '099999') || '''';
?column?
-----------
' 001234'
(1 row)
Is this the way it's meant to be?
I would prefer
'001234'
So I don't have to ltrim it.
Aasmund Midttun Godal
aasmund(at)godal(dot)com - http://www.godal.com/
+47 40 45 20 46