Mass Update

From: Iain Adams <aca04iba(at)shef(dot)ac(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Mass Update
Date: 2007-04-23 11:25:20
Message-ID: 1177327520.116056.182560@b75g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

This is probably a really easy question but I have been toiling with
this SQL for ages.
Okay I have a table with geom_id and id in, this table is called temp.
I also have another table called junctions with a column, old_id. Now
old_id corresponds to geom_id. I want to update the junctions table
column id with the id held in temp where the geom_id column matches
the old_id column.

I would really appreciate some help on this. I just cant seem to get
it right.

Thanks

Iain

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Kroeger 2007-04-23 12:15:18 Re: selective export for subsequent import (COPY)
Previous Message Andreas 'ads' Scherbaum 2007-04-23 09:22:41 Re: Auditing a database