padding an integer ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема padding an integer ...
Дата
Msg-id 20051026005530.E993@ganymede.hub.org
обсуждение исходный текст
Ответы Re: padding an integer ...
Список pgsql-sql
Is there any way of "padding" an integer, similar to how, in perl, I would 
do:

printf("%03d", 1);

to get:

001

Specifically, I'm looking to do this in a pl/pgsql function ... like to 
avoid moving to pl/php or pl/perl if I can ... but, from what I've been 
able to find, I suspect I'm not going to have much of a choice ...

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: broken join optimization? (8.0)
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: pl/* overhead ...