| From: | Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com> |
|---|---|
| To: | PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Formatting zeroes |
| Date: | 2002-09-16 14:41:49 |
| Message-ID: | 20020916144149.39360.qmail@web80309.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ries van Twisk | 2002-09-16 14:51:23 | Dublicates pairs in a table. |
| Previous Message | Michael Paesold | 2002-09-16 13:58:23 | Re: cross tab (pivtor table) sql |