Problems with UPDATE - Mailing list pgsql-general

From Evan Zane Macosko
Subject Problems with UPDATE
Date
Msg-id Pine.OSF.4.33.0108151804030.21585-100000@is05.fas.harvard.edu
Whole thread Raw
Responses Re: Problems with UPDATE  (Andrew Gould <andrewgould@yahoo.com>)
List 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 by date:

Previous
From: "Hicnar"
Date:
Subject: A libpq++ question.
Next
From: "Jova"
Date:
Subject: spool