Formatting zeroes

Поиск
Список
Период
Сортировка
От Ludwig Lim
Тема Formatting zeroes
Дата
Msg-id 20020916144149.39360.qmail@web80309.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Formatting zeroes
Список pgsql-sql
Hi:
 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.   However my problem is when I encounter a row has a
zero for one its column. It displays "0.", I tried
using with other formatting options but it does not
display zero the way I like ( "0" or "0.0").
 Is there a format specifier in the to_char function
that it will display 0 as "0" or "0.0"?

thanks,

ludwig.


__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com


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

Предыдущее
От: "Michael Paesold"
Дата:
Сообщение: Re: cross tab (pivtor table) sql
Следующее
От: "Ries van Twisk"
Дата:
Сообщение: Dublicates pairs in a table.