Re: SELECT composite type

Поиск
Список
Период
Сортировка
От Niklas Johansson
Тема Re: SELECT composite type
Дата
Msg-id 40485D0C-8C3A-4206-9825-3A459934F356@tele2.se
обсуждение исходный текст
Ответ на SELECT composite type  (Michael Burke <michael@engtech.ca>)
Ответы Re: SELECT composite type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On 5 apr 2006, at 17.57, Michael Burke wrote:

> So I basically want to call get_xy for every row in
> sightings, and use its output for two columns; or perhaps there is  
> another
> way to think of this.


You could try

SELECT foo.x, foo.y, title FROM
(SELECT  get_xy(SetSRID(sightings.location, 26910), 4326) AS foo,  sightings.title
FROM sightings
WHERE sighting_id = 25) bar;



Sincerely,

Niklas Johansson





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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Reverse Index ... how to ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SELECT composite type