Re: Update Join ? - Mailing list pgsql-general

From Adam Rich
Subject Re: Update Join ?
Date
Msg-id 090001c89443$1a128480$4e378d80$@r@sbcglobal.net
Whole thread Raw
In response to Update Join ?  (kevin kempter <kevin@kevinkempterllc.com>)
List pgsql-general
>> Does Postgres allow updates based on the context of a sub-query,
something like the sample below ?

Yes,

Update real_tab
set real_tab.data_desc = temp_tab.data_desc
From temp_tab
Where real_tab.keyID = temp_tab.keyID

(don't repeat your updated table in the "from" list unless you
Mean to self-join)

http://www.postgresql.org/docs/8.3/interactive/sql-update.html



pgsql-general by date:

Previous
From: kevin kempter
Date:
Subject: Update Join ?
Next
From: carty mc
Date:
Subject: dblink ,dblink_exec not participating in a Transaction??