From: nori <kodmasin@gmail.com>
To: pgsql-sql@postgresql.org
Subject: How to alias table columns in result?
Date: Thu, 11 Aug 2005 00:45:24 +0200
Message-ID: <1745503505081015455e79f284@mail.gmail.com> (raw)
Hi,
If I have:
1.) table car with columns index and name
2.) table driver with columns index, name and car_index
and query:
SELECT d.*, c.* FROM driver as d LEFT OUTER JOIN car AS c ON
d.car_index=c.index;
How can I get results that have distinct names for columns (ex.
d.name, d.index, c.name, c.index,...)?
tnx
boris
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: kodmasin@gmail.com
Subject: Re: How to alias table columns in result?
In-Reply-To: <1745503505081015455e79f284@mail.gmail.com>
* 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