Re: syntax for updating an aliased table - Mailing list pgsql-general

From Andy Chambers
Subject Re: syntax for updating an aliased table
Date
Msg-id BANLkTim=-OE4GAWJ_QstKDYse-mguJ6w0A@mail.gmail.com
Whole thread Raw
In response to Re: syntax for updating an aliased table  (Rick Genter <rick.genter@gmail.com>)
List pgsql-general
On Thu, May 26, 2011 at 1:40 PM, Rick Genter <rick.genter@gmail.com> wrote:
>
> The UPDATE statement when multiple tables are involved always drives me nuts.
> I think what you need to do is remove all of the "old." from the SET clause and use "triple." in the WHERE clause
insteadof "old." - and remove the old table alias from the UPDATE. 

This worked.  Thanks very much

--
Andy

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Is there any problem with pg_notify and memory consumption?
Next
From: Merlin Moncure
Date:
Subject: Re: copy record?