Substring result short by 1

Поиск
Список
Период
Сортировка
От David Filion
Тема Substring result short by 1
Дата
Msg-id 4134D1AF.4010202@filiontech.com
обсуждение исходный текст
Ответы Re: Substring result short by 1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

I have a question about substring(), when I run the following query:

prepaid=# select substring('15148300', 0, 5);
substring
-----------
1514
(1 row)


I get a result with only the first 4 characters, not five.  Why is
that?  The documentation doesn't spend much time discussing the
substring() function and google turned up nothing.  I tried
searching the archives but the site is down.

David





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

Предыдущее
От: Jerry LeVan
Дата:
Сообщение: Re: Types and SRF's
Следующее
От: Ying Lu
Дата:
Сообщение: About "lock file postmaster.pid" Error , cannot setup postmaster