From: | Thomas Pundt <mlists(at)rp-online(dot)de> |
---|---|
To: | pgsql-general(at)postgresql(dot)org, "Gregory Williamson" <Gregory(dot)Williamson(at)digitalglobe(dot)com> |
Subject: | Re: Need to update all entries of one table based on an earlier backup |
Date: | 2008-06-20 10:40:05 |
Message-ID: | 200806201240.05432.mlists@rp-online.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Freitag, 20. Juni 2008, Gregory Williamson wrote:
| For reasons best left unmentioned, I need to update entries in a table from
| a backup; I need to do all entries.
|
| For reasons eluding my sleep deprived eyes this fails in every variation I
| can think of:
|
| update foo set foo.foo_name2=foo_old.foo_name2 where foo.foo_id =
| foo_old.foo_id; ERROR: missing FROM-clause entry for table "foo_old"
Does
update foo
set foo.foo_name2 = foo_old.foo_name2
from foo_old
where foo.foo_id = foo_old.foo_id;
work for you?
| Could someone please hit me with a clue-stick ? This is crucial and yet I
| am stumbling over something. Since I am not updating foo_old I am baffled
| as to what this messsage really means. I've tried "where foo_old.foo_id =
| foo.foo_id ... same message.
Ciao,
Thomas
--
Thomas Pundt <thomas(dot)pundt(at)rp-online(dot)de> ---- http://rp-online.de/ ----
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Williamson | 2008-06-20 10:55:37 | Re: Need to update all entries of one table based on an earlier backup |
Previous Message | Markus Wollny | 2008-06-20 10:39:01 | Re: Need to update all entries of one table based on an earlier backup |