Re: [SQL] Using Update

From: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Using Update
Date: 1999-06-28 14:37:00
Message-ID: 19990628093700.A27076@wallace.ece.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tiberiu Craciun 1999-06-28 16:06:19 Temporary tables
Previous Message Herouth Maoz 1999-06-28 09:13:49 Re: [SQL] Using Update