How to alias table columns in result?

From: nori <kodmasin(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to alias table columns in result?
Date: 2005-08-10 22:45:24
Message-ID: 1745503505081015455e79f284@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mischa Sandberg 2005-08-10 23:09:04 Re: How to alias table columns in result?
Previous Message Bruno Wolff III 2005-08-10 17:52:29 Re: Breakdown results by month