Re: How to alias attributes in an ARRAY_AGG expression

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to alias attributes in an ARRAY_AGG expression
Date: 2013-11-13 17:39:32
Message-ID: 1384364372141-5778196.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Claudio Poli 2013-11-13 17:51:57 Re: How to alias attributes in an ARRAY_AGG expression
Previous Message Claudio Poli 2013-11-13 17:25:54 Re: How to alias attributes in an ARRAY_AGG expression