Re: Formatting zeroes

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Formatting zeroes
Дата
Msg-id web-1649734@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Formatting zeroes  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Ответы Re: Formatting zeroes
Список pgsql-sql
Ludwig,

>   I'm trying to use SQL to generate a formatted
> report. The "to_char(numeric,'FM9,999,999,999.99')"
> function works when I use it format numbers with
> decimal points and appropriate commas.
>   Is there a format specifier in the to_char function
> that it will display 0 as "0" or "0.0"?

"to_char(numeric,'FM9,999,999,999.09')"

-Josh Berkus


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Dublicates pairs in a table.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: POSIX-style regular expressions