From: Mark <mlundquist@bvsdps.com>
To: pgsql-sql@postgreSQL.org
Subject: Update with two tables??
Date: Wed, 16 Jun 1999 14:35:26 -0400
Message-ID: <v04003a01b38d9d2a79a9@[172.16.200.154]> (raw)
I am trying to update table A with data from table B. I thought I could do
something like:
UPDATE A
SET A.name = B.name
WHERE A.id = B.id
FROM B
but alas, this does not work.
Anyone have an idea of how I can do this?
-Mark
-----------------------------------------------------------------
Mark Lundquist
mlundquist@bvsdps.com
-----------------------------------------------------------------
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: mlundquist@bvsdps.com
Subject: Re: Update with two tables??
In-Reply-To: <v04003a01b38d9d2a79a9@[172.16.200.154]>
References: <v04003a01b38d9d2a79a9@[172.16.200.154]>
* 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