Re: Accessing an array element from a function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Accessing an array element from a function
Дата
Msg-id 29762.1096585160@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Accessing an array element from a function  (Mike Nolan <nolan@gw.tssi.com>)
Список pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
> This doesn't work:
>     select myfunc(1,2)[1];

> This does work:
>     select (myfunc(1,2)[1];

I suppose you meant

     select (myfunc(1,2))[1];

> If that's how it's supposed to work, is that documented somewhere?

http://developer.postgresql.org/docs/postgres/sql-expressions.html#AEN1593

            regards, tom lane

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