Playing with UPDATEs ...

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Playing with UPDATEs ...
Date: 2000-01-21 13:46:03
Message-ID: Pine.BSF.4.21.0001210943200.23487-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Just curious, but shouldn't something like this be possible? Or is my
syntax just off?

update dict d, dictionary m
set d.word = m.word_val
where d.word = m.word;

I want to go through one table and replace all occurances of every word in
the second table with a numeric value ...

I've tried it as:

update dict, dictionary
set dict.word = dictionary.word_val
where dict.word = dictionary.word;

and that doesn't work either ...

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2000-01-21 13:51:24 Re: [HACKERS] Building Documentation under Debian
Previous Message Mark Hollomon 2000-01-21 13:31:30 Building Documentation under Debian