From: Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Using Update
Date: Mon, 28 Jun 1999 09:37:00 -0500
Message-ID: <19990628093700.A27076@wallace.ece.rice.edu> (raw)
In-Reply-To: <l03130303b39cec11db6a@[147.233.159.109]>
References: <377731EB.AACAEA8B@thinx.ch>
<l03130303b39cec11db6a@[147.233.159.109]>
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
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: reedstrm@wallace.ece.rice.edu
Subject: Re: [SQL] Using Update
In-Reply-To: <19990628093700.A27076@wallace.ece.rice.edu>
References: <377731EB.AACAEA8B@thinx.ch> <l03130303b39cec11db6a@[147.233.159.109]> <19990628093700.A27076@wallace.ece.rice.edu>
* 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