merge into T_DEV_SENDMAIL a using t_dev_email b on (a.code=b.code) when matched then update set a.email=b.email