pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ssylla <stefansylla@gmx.de>
To: pgsql-sql@postgresql.org
Subject: update multiple columns with multiple values
Date: Tue, 7 Feb 2012 23:39:44 -0800 (PST)
Message-ID: <1328686784550-5465796.post@n5.nabble.com> (raw)

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-tp5465796p54657...
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



Message-ID: <1328686784550-5465796.post@n5.nabble.com>
Permalink:  ../1328686784550-5465796.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1328686784550-5465796.post@n5.nabble.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: stefansylla@gmx.de
  Subject: Re: update multiple columns with multiple values
  In-Reply-To: <1328686784550-5465796.post@n5.nabble.com>

* 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