In this post, we’re going to learn how to update amysql tablecolumn with the values from another table column usinginner join.
UPDATE [table1_name] AS t1 INNER JOIN [table2_name] AS t2 ON t1.[column1_name] = t2.[column1_name] SET t1.[column2_name] = t2.[column2_name];
Replace all “[ ]” with the values of your table properties.
UPDATE student_marks AS t1 INNER JOIN student_profile AS t2 ON t1.student_id = t2.student_id SET t1.student_name = t2.student_name;
I hope this helps you. Share this post and comment your doubts below if you have any.