Re: Number Conversion Function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Number Conversion Function
Дата
Msg-id 20090406174847.GD4525@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Number Conversion Function  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
Albe Laurenz wrote:
> Abdul Rehman wrote:
> > Can any body help me in converting numeric values into words
> > via postgres function: i.e. 313 to THREE HUNDRED THREE
>
> Here is a little PL/pgSQL function that should do what you
> want for numbers < 1000000000000.
> It should be easy to extend if you switch to bigint and decide
> if you want British or American English.

This is something that would be probably useful to have in
http://wiki.postgresql.org/wiki/Snippets
We have a function there to generate the numbers in spanish ...

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: "Chris Spotts"
Дата:
Сообщение: Re: copy from with trigger
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: How to convert integer to boolean in insert