update left join 多表关联更新,

来源:互联网 发布:vb宽度高度 编辑:程序博客网 时间:2024/05/16 04:00
UPDATE table_1 t1 left join table_2 t2 on t2.id = t1.tid SET t1.username = t2.unamewhere t1.id>5;


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

1 0