Re: SELECT composite type

From: Niklas Johansson <spot(at)tele2(dot)se>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT composite type
Date: 2006-04-05 20:31:16
Message-ID: 40485D0C-8C3A-4206-9825-3A459934F356@tele2.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tomas Vondra 2006-04-05 22:29:09 problem comparing strings when different cluster / database encoding
Previous Message Marc G. Fournier 2006-04-05 19:14:44 Re: Reverse Index ... how to ...