Re: UPDATE one table with values from another - Mailing list pgsql-sql

From Josh Berkus
Subject Re: UPDATE one table with values from another
Date
Msg-id 200310081637.57591.josh@agliodbs.com
Whole thread Raw
In response to UPDATE one table with values from another  (Dan Langille <dan@langille.org>)
Responses Re: UPDATE one table with values from another  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: UPDATE one table with values from another  (Dan Langille <dan@langille.org>)
List pgsql-sql
Dan,

> UPDATE commit_log_ports_elements X
>    SET X.needs_refresh = CLP.needs_refresh,
>        X.port_version  = CLP.port_version,
>        X.port_revision = CLP.port_revision

FROM commit_log_ports CLP
WHERE X.commit_log_id = CLP.commit_log_id

You can always ask this kind of thing on IRC .....

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: Dan Langille
Date:
Subject: UPDATE one table with values from another
Next
From: Stephan Szabo
Date:
Subject: Re: UPDATE one table with values from another