Re: function returning a readable representation of a number

Поиск
Список
Период
Сортировка
От CoL
Тема Re: function returning a readable representation of a number
Дата
Msg-id cd34sk$frr$1@news.hub.org
обсуждение исходный текст
Ответ на function returning a readable representation of a number  ("Najib Abi Fadel" <nabifadel@usj.edu.lb>)
Список pgsql-general
hi,

Najib Abi Fadel wrote:
>
> Is there any postgres function that do the following:
>
> select func(9123456789);
> 9 123 456 789
>
> the function is given a number and it returns a "readable" string
> representation of the number seperating groups of 3 numbers by spaces.

you can write it for your own, but here is one:
http://gear.hu/files/resources/postgresql/number_format.sql

C.

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

Предыдущее
От: Clodoaldo Pinto Neto
Дата:
Сообщение: Re: server closed the connection unexpectedly
Следующее
От: David Helgason
Дата:
Сообщение: Re: