Re: Storing computed values - Mailing list pgsql-general

From Colin Wetherbee
Subject Re: Storing computed values
Date
Msg-id 480CD817.2090204@denterprises.org
Whole thread Raw
In response to Re: Storing computed values  (Colin Wetherbee <cww@denterprises.org>)
List pgsql-general
Colin Wetherbee wrote:
> SELECT connect(p_start.location, p_end.location)
> FROM foo
> JOIN points AS p_start ON foo.point_id_start = points.point_id
> JOIN points AS p_end   ON foo.point_id_end   = points.point_id
> WHERE foo.id = 8192;

As I didn't test this code, my syntax was slightly incorrect.

JOIN ... ON ... = p_start.point_id
JOIN ... ON ... = p_end.point_id

Colin

pgsql-general by date:

Previous
From: Colin Wetherbee
Date:
Subject: Re: Storing computed values
Next
From: Andrew Sullivan
Date:
Subject: Re: In the belly of the beast (MySQLCon)