Problems with UPDATE

Поиск
Список
Период
Сортировка
От Evan Zane Macosko
Тема Problems with UPDATE
Дата
Msg-id Pine.OSF.4.33.0108151804030.21585-100000@is05.fas.harvard.edu
обсуждение исходный текст
Ответы Re: Problems with UPDATE  (Andrew Gould <andrewgould@yahoo.com>)
Список pgsql-general
Hello everyone,


I am having a strange problem using the UPDATE function in Postgresql.  I
want to move a large number (6000) of entries in one table to another, so
here is my syntax:

UPDATE yeast1 SET c1 = temp.profile_1 FROM temp WHERE yeast1.orf =
temp.orf;

This query results in over 14000 entries being added!  I end up with
multiples of the same entry, which obviously is undesirable.  Does anyone
have any suggestions on how to fix this?

thanks!
Evan





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

Предыдущее
От: "Hicnar"
Дата:
Сообщение: A libpq++ question.
Следующее
От: "Jova"
Дата:
Сообщение: spool