update left join 多表关联更新,

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a281246240/article/details/70184499
UPDATE table_1 t1 left join table_2 t2 on t2.id = t1.tid SET t1.username = t2.uname
where t1.id>5;


单张表自联,多表关联更新都可以。

猜你喜欢

转载自blog.csdn.net/a281246240/article/details/70184499