Re: Altnerate Column Return Names

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Altnerate Column Return Names
Дата
Msg-id
Pine.LNX.4.21.0007072219470.587-100000@localhost.localdomain
Ответ на
Список
Дерево обсуждения
Altnerate Column Return Names Thomas Swan <tswan@olemiss.edu>
Re: Altnerate Column Return Names Peter Eisentraut <peter_e@gmx.net>
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


В списке pgsql-sql по дате отправления
От: Antoine Reid
Дата:
Сообщение: Re: confused by select.
От: Peter Eisentraut
Дата:
FAQ