From: | "Nick Stone" <nick(at)harelane(dot)com> |
---|---|
To: | "'nori'" <kodmasin(at)gmail(dot)com>, "'Mischa Sandberg'" <mischa(dot)sandberg(at)telus(dot)net> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: How to alias table columns in result? |
Date: | 2005-08-11 09:56:54 |
Message-ID: | 20050811095451.B475F252AE9@smtp.nildram.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Yes - just alias the columns you need to alias
Nick
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of nori
Sent: 11 August 2005 10:48
To: Mischa Sandberg
Cc: pgsql-sql(at)postgresql(dot)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(dot)sandberg(at)telus(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Lucas Grijander | 2005-08-11 11:44:53 | Select problems |
Previous Message | nori | 2005-08-11 09:48:28 | Re: How to alias table columns in result? |