17,377
社区成员
发帖
与我相关
我的任务
分享
--参考:
merge into table_a a
using table_b b
on(a.id=b.id)
when matched then
update
set a.col_1=b.col_1
a.col_2=b.col_2
when not matched then
insert (a.col_1,a.col_2)
values (b.col_1,b.col_2);