How to alias table columns in result?

Поиск
Список
Период
Сортировка
От nori
Тема How to alias table columns in result?
Дата
Msg-id 1745503505081015455e79f284@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to alias table columns in result?  (Mischa Sandberg <mischa.sandberg@telus.net>)
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Breakdown results by month
Следующее
От: Mischa Sandberg
Дата:
Сообщение: Re: How to alias table columns in result?