From: patrick.jacquot@anpe.fr
To: liste SQL <pgsql-sql@postgresql.org>
Subject: subqueries as values in updates
Date: Fri, 08 Dec 2000 14:00:25 +0100
Message-ID: <3A30DB68.6B97A867@anpe.fr> (raw)
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 ?
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: patrick.jacquot@anpe.fr
Subject: Re: subqueries as values in updates
In-Reply-To: <3A30DB68.6B97A867@anpe.fr>
References: <3A30DB68.6B97A867@anpe.fr>
* 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