Re: How to alias attributes in an ARRAY_AGG expression

Поиск
Список
Период
Сортировка
От Claudio Poli
Тема Re: How to alias attributes in an ARRAY_AGG expression
Дата
Msg-id CANp6Qo+MJAgOtgGn-Yqi2u1CVmzoPLw4V_re27-5ksVvzYBiHw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to alias attributes in an ARRAY_AGG expression  (David Johnston <polobo@yahoo.com>)
Список pgsql-novice
Awesome, thank you very much.
C.


On Wed, Nov 13, 2013 at 6:39 PM, David Johnston <polobo@yahoo.com> wrote:
Claudio Poli wrote
> create type media_file_detail as (position integer AS myalias);

CREATE TYPE media_file_detail AS (position_alias integer, token_alias text);

... ARRAY_AGG(
    (media_files.position, media_files.token)::media_file_detail
) ...

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-alias-attributes-in-an-ARRAY-AGG-expression-tp5778089p5778196.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: How to alias attributes in an ARRAY_AGG expression
Следующее
От: Claudio Poli
Дата:
Сообщение: manipulate and return row inside a function