UPDATE with JOIN - Mailing list pgsql-novice

From Keith Worthington
Subject UPDATE with JOIN
Date
Msg-id 20050524175811.M92003@narrowpathinc.com
Whole thread Raw
Responses Re: UPDATE with JOIN  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hi All,

I am banging my head againset the wall trying to figure out how to do a JOIN
within an UPDATE.  Can someone please help me out?  Here is what I have.  Of
course it does not work. :-(

UPDATE tbl_line_item
   SET tbl_line_item.reviewed = TRUE
  FROM tbl_item
    ON ( tbl_line_item.item_id = tbl_item.id )
 WHERE item_type = 'DIR';

Kind Regards,
Keith

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: "NOT NULL"
Next
From: Tom Lane
Date:
Subject: Re: UPDATE with JOIN