Update with two tables??

From: Mark <mlundquist(at)bvsdps(dot)com>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: Update with two tables??
Date: 1999-06-16 18:35:26
Message-ID: v04003a01b38d9d2a79a9@[172.16.200.154]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)bvsdps(dot)com
-----------------------------------------------------------------

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Hector M Banda 1999-06-16 19:40:42 Little Help is needed.
Previous Message Ravneet Mann 1999-06-16 17:26:34 help needed