From: Peter Eisentraut <peter_e@gmx.net>
To: Thomas Swan <tswan@olemiss.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Altnerate Column Return Names
Date: Sat, 8 Jul 2000 02:09:02 +0200 (CEST)
Message-ID: <Pine.LNX.4.21.0007072219470.587-100000@localhost.localdomain> (raw)
In-Reply-To: <4.3.2.7.2.20000707083729.01ff2f08@sunset.backbone.olemiss.edu>
Thomas Swan writes:
> If I do a select * from table1, table2 where table1.id = table2.id I
> normally get two columns returned with a column identifier of id.
> id | name | data | id | name | data
> ----+------+------+----+------+------
> Is there anyway to get the result to return
>
> table1.id | table1.name | table1.data | table2.id | ,,,
> -----------+-------------+-------------+-----------+- ...
select table1.id as "whatever you want", table1.name as "whatever you
want", table1.data as "something", ...
You get the idea.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: peter_e@gmx.net, tswan@olemiss.edu
Subject: Re: Altnerate Column Return Names
In-Reply-To: <Pine.LNX.4.21.0007072219470.587-100000@localhost.localdomain>
References: <4.3.2.7.2.20000707083729.01ff2f08@sunset.backbone.olemiss.edu> <Pine.LNX.4.21.0007072219470.587-100000@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox