Subscripts in select statements

Поиск
Список
Период
Сортировка
От Scott Holmes
Тема Subscripts in select statements
Дата
Msg-id 200007250018.RAA11633@scotts.mynetwork.net
обсуждение исходный текст
Список pgsql-general
I have an select statement inherited from an Informix-4GL application.  I
would like to know if there is a way to retain it in Postgresql:

select count(*) from people where peopcode[1,2] = a_var

This sort of subscripting is apparently illegal.  I realize I can change the
code to " ...peopcode like a_var + "%"", but to do this I would need to make a
number of other code changes I'd like to avoid if possible.

Thanks,  Scott


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

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: ROLLBACK automatically
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Statistical Analysis