Re: How to alias table columns in result? - Mailing list pgsql-sql

From Nick Stone
Subject Re: How to alias table columns in result?
Date
Msg-id 20050811095451.B475F252AE9@smtp.nildram.co.uk
Whole thread Raw
In response to Re: How to alias table columns in result?  (nori <kodmasin@gmail.com>)
Responses Re: How to alias table columns in result?
List pgsql-sql
Yes - just alias the columns you need to alias

Nick 

-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of nori
Sent: 11 August 2005 10:48
To: Mischa Sandberg
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] How to alias table columns in result?

Thanks

Sorry, my question was missing one important detail. My tables have quite a
lot columns (which unfortunately have same names in both
tables) so is it possible to do same as below but without specifying alias
for each column. Now my queries are long and they do not look nice.

boris

On 8/11/05, Mischa Sandberg <mischa.sandberg@telus.net> wrote:
> SELECT d.name as "d.name",
>        d.index as "d.index",
>        c.name as "c.name",
>        ...

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend





pgsql-sql by date:

Previous
From: nori
Date:
Subject: Re: How to alias table columns in result?
Next
From: nori
Date:
Subject: Re: How to alias table columns in result?