Received: from mickey.anpe.fr (smtp1.anpe.fr [195.101.137.20]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eB8AxRZ65896 for ; Fri, 8 Dec 2000 05:59:27 -0500 (EST) (envelope-from patrick.jacquot@anpe.fr) Received: from antivirus.anpe.fr ([10.0.4.95]) by mickey.anpe.fr (Netscape Messaging Server 4.05) with SMTP id G58XB400.41M for ; Fri, 8 Dec 2000 12:01:52 +0100 Message-ID: <3A30DB68.6B97A867@anpe.fr> Date: Fri, 08 Dec 2000 14:00:25 +0100 From: patrick.jacquot@anpe.fr Organization: anpe X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.9-19mdk i586) X-Accept-Language: en MIME-Version: 1.0 To: liste SQL Subject: subqueries as values in updates Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/59 X-Sequence-Number: 390 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 ?