subqueries as values in updates - Mailing list pgsql-sql

From patrick.jacquot@anpe.fr
Subject subqueries as values in updates
Date
Msg-id 3A30DB68.6B97A867@anpe.fr
Whole thread Raw
Responses RE: subqueries as values in updates
List pgsql-sql
hello, list.
are subqueries alloved as values in an update command ?
e.g.

update a set a.attribute1 = a.attribute1 +   (select sum(b.attribute1) from b where b.attribute2=a.attribute2);

If yes, how is the correct syntax ?
If not, is there a hope for it in a future version ?



pgsql-sql by date:

Previous
From: Joseph Shraibman
Date:
Subject: FOREIGN KEY errors.
Next
From: "Francis Solomon"
Date:
Subject: RE: subqueries as values in updates