Re: substr

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: substr
Дата
Msg-id 9048.971967012@sss.pgh.pa.us
обсуждение исходный текст
Ответ на substr  (Jeff MacDonald <jeff@hub.org>)
Ответы Re: substr  (Jeff MacDonald <jeff@pgsql.com>)
Список pgsql-sql
Jeff MacDonald <jeff@hub.org> writes:
> i noticed that substr behaves a bit different in pgsql than perl
> ie select foo from table where substr(foo,1,1) = 'X';

> just wondering on the reasoning for this offset ?

Larry Wall and the SQL92 authors didn't talk to each other...

We are implementing SQL around here, not Perl, so we have to follow
the SQL spec's definition of substr().
        regards, tom lane


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

Предыдущее
От: Jeff MacDonald
Дата:
Сообщение: substr
Следующее
От: Jeff MacDonald
Дата:
Сообщение: Re: substr