背景 :
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