On Wed, Oct 26, 2005 at 12:57:25AM -0300, Marc G. Fournier wrote: > Is there any way of "padding" an integer, similar to how, in perl, I would > do: > > printf("%03d", 1); > > to get: > > 001
test=> SELECT to_char(1, '000'); to_char --------- 001 (1 row) http://www.postgresql.org/docs/8.0/interactive/functions-formatting.html -- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly