Re: UPDATE one table with values from another

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Dan Langille <dan(at)langille(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: UPDATE one table with values from another
Date: 2003-10-08 23:37:57
Message-ID: 200310081637.57591.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-10-09 00:12:00 Re: UPDATE one table with values from another
Previous Message Dan Langille 2003-10-08 22:10:44 UPDATE one table with values from another