Formating numbers useing to_char: how to get rid of leading space?
В списке pgsql-general по дате отправления:
| От | Erich |
|---|---|
| Тема | Formating numbers useing to_char: how to get rid of leading space? |
| Дата | |
| Msg-id | 200009242041.NAA10245@cyberpass.net обсуждение исходный текст |
| Ответы |
Re: Formating numbers useing to_char: how to get rid of leading space?
|
| Список | pgsql-general |
I'm trying to format some numbers using to_char, like this:
SELECT TO_CHAR(34, '099999');
Whenever I do this, I always get a leading space, if the int is
positive. I looked at the manual, and all the examples had leading
spaces. Is there a way to get rid of this using TO_CHAR, or should I
write my own formating function that does a TO_CHAR followed by a
LTRIM or something? If that's the only way to do it, I guess I'll
eventually just write a C function that does numerical output.
Thanks,
e
--
This message was my two cents worth. Please deposit two cents into my
e-gold account by following this link:
http://rootworks.com/twocentsworth.cgi?102861
275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера