merge into 更新字段用法

merge into 表1  tt --表是需要更新的表
using 表2  t -- 关联表
on (tt.id=t.id) --关联条件
when matched then --匹配关联条件,作更新处理
update set
tt.字段=t.字段

posted @ 2022-03-17 15:14  琪琪博客  阅读(489)  评论(0)    收藏  举报