update one table with another - Mailing list pgsql-general

From Matthew Pugsley
Subject update one table with another
Date
Msg-id 873251980904201334w1bb49ad4s5fdc9992fab1c09f@mail.gmail.com
Whole thread Raw
Responses Re: update one table with another
List pgsql-general
I've solved it.
 
I just used a subselect. Worked very quickly. I had a lot of trouble with subqueries when I first started databases with MySQL. So I have been afraid of them.
 
update entities
set customer_status = select(customer_status from entity_dimension_update where entities.entity_id = entity_dimension_update.entity_id);
 
Worked almost instantly.
 
My apologies for the spam.

--
matthew.pugsley@gmail.com

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Doubt about join clause
Next
From: Mikko
Date:
Subject: trouble with to_char('L')