| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера