In my mysql db i’ve 2 table with same field in both.
I need to update all the records in table2 where table1 had the same id_customer and the fields are not empty.
Example:
table1
id|name|surname|id_customer|email
1|jon|jack|12|hello@me.com
table2
id_customer|name|surname|email
12| |jack|hello@me.com
The query have to update table2 adding “jon” on name
Any idea how to?
Thank you
Try this one –