Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 497391A3E38A for ; Wed, 8 Feb 2012 03:40:00 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rv28D-0004Zh-Rh for pgsql-sql@postgresql.org; Wed, 08 Feb 2012 07:40:00 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rv280-0004UG-Hz for pgsql-sql@postgresql.org; Tue, 07 Feb 2012 23:39:44 -0800 Date: Tue, 7 Feb 2012 23:39:44 -0800 (PST) From: ssylla To: pgsql-sql@postgresql.org Message-ID: <1328686784550-5465796.post@n5.nabble.com> Subject: update multiple columns with multiple values MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201202/32 X-Sequence-Number: 36325 Dear list, I am trying to update all rows of a column ('parent') based on a subquery that returns me the first four digits of another column ('id'): After executing, I get the following error-message: I am not quite sure about that, but maybe I need to construct a function to fulfill this task? thanks for help. Stefan -- View this message in context: http://postgresql.1045698.n5.nabble.com/update-multiple-columns-with-multiple-values-tp5465796p5465796.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.