From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Dan Langille <dan@langille.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: UPDATE one table with values from another
Date: Wed, 8 Oct 2003 17:12:00 -0700 (PDT)
Message-ID: <20031008170912.Y3825@megazone.bigpanda.com> (raw)
In-Reply-To: <200310081637.57591.josh@agliodbs.com>
References: <20031008180813.X53328@xeon.unixathome.org>
<200310081637.57591.josh@agliodbs.com>
On Wed, 8 Oct 2003, Josh Berkus wrote:
> > UPDATE commit_log_ports_elements X
IIRC, PostgreSQL doesn't like aliases of the
update table, so I think you'll need to spell it
out in the WHERE.
> > SET X.needs_refresh = CLP.needs_refresh,
> > X.port_version = CLP.port_version,
> > X.port_revision = CLP.port_revision
I don't think you need the X.'s here anyway, there's
only one update table.
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: sszabo@megazone.bigpanda.com, josh@agliodbs.com, dan@langille.org
Subject: Re: UPDATE one table with values from another
In-Reply-To: <20031008170912.Y3825@megazone.bigpanda.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