如何更新过滤条件中包含自身的表

UPDATE user1 a JOIN (
SELECT b.user_name
FROM user1 a INNER JOIN user2 B ON
a.user_name = b.user_name
) b ON a.user_name = b.user_name
SET a.OVER='齐天大圣'

你可能感兴趣的:(如何更新过滤条件中包含自身的表)