Re: [SQL] Using Update - Mailing list pgsql-sql

From Ross J. Reedstrom
Subject Re: [SQL] Using Update
Date
Msg-id 19990628093700.A27076@wallace.ece.rice.edu
Whole thread Raw
In response to Re: [SQL] Using Update  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List pgsql-sql
On Mon, Jun 28, 1999 at 12:13:49PM +0300, Herouth Maoz wrote:
A minor nit here. postgresql doesn't like class qualifications on the
field name tagets in an update (at least with 6.4.2), so the set line
needs to lose the "b." part, as below:

> 
> So, it appears that the correct syntax in Postgres would be:
> 
> UPDATE b
> SET b.a_id = a.aid

SET a_id=a.aid

> FROM a
> WHERE b.custno = a.custno;
> 

Ross


pgsql-sql by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [SQL] Using Update
Next
From: "Tiberiu Craciun"
Date:
Subject: Temporary tables