length of return value of to_char()

Поиск
Список
Период
Сортировка
От Seb
Тема length of return value of to_char()
Дата
Msg-id 87liy01tlc.fsf@kolob.subpolar.dyndns.org
обсуждение исходный текст
Ответы Re: length of return value of to_char()
Список pgsql-general
Hi,

I thought this should be equal to 4:

# SELECT length(to_char(11, '0999'));
 length
--------
      5
(1 row)

but the string returned by the to_char() call is 0011 (length 4).  What
am I missing?

Thanks,

--
Seb

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

Предыдущее
От: Wei
Дата:
Сообщение: Fwd: Unable to Install - "unable to write inside TEMP environment variable path"
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: length of return value of to_char()