Playing with UPDATEs ...

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Playing with UPDATEs ...
Дата
Msg-id Pine.BSF.4.21.0001210943200.23487-100000@thelab.hub.org
обсуждение исходный текст
Список 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_valwhere dict.word = dictionary.word;

and that doesn't work either ...

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Mark Hollomon"
Дата:
Сообщение: Building Documentation under Debian
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: [HACKERS] Building Documentation under Debian