Re: Converting each item in array to a query result row

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Converting each item in array to a query result row
Дата
Msg-id 17210.1243608297@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Converting each item in array to a query result row  (Adam Ruth <adamruth@mac.com>)
Ответы Re: Converting each item in array to a query result row  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Список pgsql-general
Adam Ruth <adamruth@mac.com> writes:
> I needed to do this just the other day, here's what I did:

> create or replace function explode(_a anyarray) returns setof
> anyelement as $$

You'd be well advised to call this unnest(), because that's what the
equivalent built-in function in 8.4 is called ;-)

            regards, tom lane

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

Предыдущее
От: Osvaldo Kussama
Дата:
Сообщение: Re: Converting each item in array to a query result row
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: I can't drop a user if I don't drop his grants beforehand??????????????????