pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Niklas Johansson <spot@tele2.se>
To: pgsql-sql@postgresql.org
Subject: Re: SELECT composite type
Date: Wed, 5 Apr 2006 22:31:16 +0200
Message-ID: <40485D0C-8C3A-4206-9825-3A459934F356@tele2.se> (raw)
In-Reply-To: <200604051257.09980.michael@engtech.ca>
References: <200604051257.09980.michael@engtech.ca>
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
view thread (5+ messages) latest in thread
Message-ID: <40485D0C-8C3A-4206-9825-3A459934F356@tele2.se> Permalink: ../40485D0C-8C3A-4206-9825-3A459934F356@tele2.se/ Also on: postgresql.org/message-id/40485D0C-8C3A-4206-9825-3A459934F356@tele2.se ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-sql@postgresql.org Cc: spot@tele2.se Subject: Re: SELECT composite type In-Reply-To: <40485D0C-8C3A-4206-9825-3A459934F356@tele2.se> References: <200604051257.09980.michael@engtech.ca> <40485D0C-8C3A-4206-9825-3A459934F356@tele2.se> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox