标签:
merge into users a using temp_users b on (a.userid = b.user_id) when matched then update set a.password = bb.password, a.name = b.name when not matched then insert (a.name, a.password) values (b.name, b.password); commit;
标签:
原文地址:http://www.cnblogs.com/krisy/p/4377394.html