[thelist] SQL

Matt Warden mwarden at gmail.com
Sun Mar 29 10:00:40 CDT 2009


On Sun, Mar 29, 2009 at 10:56 AM, Fred Jones <fredthejonester at gmail.com> wrote:
> UPDATE contact
> LEFT JOIN temp ON temp.contact_id = contact .id
> SET xxx='yyy'
> WHERE temp.contact_id IS NOT NULL;

Or:

UPDATE contact
INNER JOIN temp ON temp.contact_id = contact .id
SET xxx='yyy'


-- 
Matt Warden
Cincinnati, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list