I have 2 MySQL tables like these
| email | bounce | status |
|email |
what i want is a query to update the (bounce and status column) main table with respect to the data from bounce table
this is the query i tried, update main inner join bounce on (main.email = bounce.email) set main.bounce='yes' and main.status='Inactive';
update main inner join bounce on (main.email = bounce.email) set main.bounce='yes' and main.status='Inactive';
You should try
UPDATE main m INNER JOIN bounce b ON m.email=b.email SET m.bounce="yes" AND m.status="Inactive";
1.4m articles
1.4m replys
5 comments
57.0k users