Search Postgresql Archives

update one table with another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux