On 04/03/2012 01:29 PM, Kevin Kempter wrote:
Hi All; I have a query that wants to update a table based on a join like this: update test_one set f_key = t.f_key from upd_temp1 t, test_one t2 where t.id_number = t2.id_number
Why is test_one in the from clause? update joins whatever is in the from clause to the table being updated. You almost never need it repeated in the from clause.
cheers andrew -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance