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";
2.1m questions
2.1m answers
60 comments
57.0k users