tags:

views:

33

answers:

1

Possible Duplicate:
help need a mysql query specialist !!

ok i have a table1 containing a fieldset with emails and is constantly adding up via cron jobs now there is tabel2 that has the same emails. now i need to update table2 field "status" (wich is an enum field) where email on table1 = email on table2

A: 
UPDATE table1
JOIN table2 ON table1.email=table2.email
SET table1.sth=table2.status
cichy