merge into tablea a using tableb b on (a.col1=b.col1 [and 其他限制条件]) when matched then update set a.col2=b.col2