update left join 多表关联更新

UPDATE table_1 t1 left join table_2 t2 on t2.id = t1.tid SET t1.username = t2.uname
where t1.id>5;
原文地址:https://www.cnblogs.com/javabg/p/14261659.html