背景 :
z_user 的数据少余 account_temp 表
更新掉b表中的a存在的字段
UPDATE z_user b
LEFT JOIN account_temp a ON a.mobile = b.mobile
SET a. STATUS = 0
UPDATE account_temp a
LEFT JOIN z_user b ON a.mobile = b.mobile
SET a. STATUS = 0
where a.mobile = b.mobile
注意2者的区别
最好都是加上最后的那个条件 :where a.mobile = b.mobile