Problems with UPDATE

From: Evan Zane Macosko <macosko(at)fas(dot)harvard(dot)edu>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Problems with UPDATE
Date: 2001-08-15 22:06:56
Message-ID: Pine.OSF.4.33.0108151804030.21585-100000@is05.fas.harvard.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-08-15 22:54:44 Re: OpenBSD 2.9 - installation works fine but psql won't run
Previous Message Oliver Elphick 2001-08-15 21:51:02 Re: Re: Bug#108739: Tablenames should be compiled longer (fwd)