Why length(to_char(1::integer, '9')) = 2 ?

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Why length(to_char(1::integer, '9')) = 2 ?
Дата
Msg-id AANLkTimM7i23Xe6A1vF=cgrLBF0j5ekjRpKQ2i2Am-rX@mail.gmail.com
обсуждение исходный текст
Ответы Re: Why length(to_char(1::integer, '9')) = 2 ?
Re: Why length(to_char(1::integer, '9')) = 2 ?
Список pgsql-general
Hey all,

dmitigr=> select to_char(1, '9');
 to_char
---------
  1

dmitigr=> select length(to_char(1, '9'));
 length
--------
      2

Why to_char() includes preceding blank space in the result ?

--
// Dmitriy.


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

Предыдущее
От: Chetan Suttraway
Дата:
Сообщение: Re: Composite index structure
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Why length(to_char(1::integer, '9')) = 2 ?