UPDATE t1
SET t1.language_id = (SELECT distinct(CASE WHEN NETWORK.nid = 11
THEN 10
ELSE 7
END)
FROM PROFILE,
NETWORK
WHERE PROFILE.STATUS IN ('A','U','S','H','I')
AND PROFILE.mid = t1.mid
AND NETWORK.mid = t1.mid
AND t1.is_deleted = 'N')
AND EXISTS( SELECT 1
FROM PROFILE,
NETWORK
WHERE PROFILE.STATUS IN ('A','U','S','H','I')
AND PROFILE.mid = t1.mid
AND NETWORK.mid = t1.mid
AND t1.is_deleted = 'N');
ゆっくりする方法です。use ステートメントに異なる更新を使用しますか? 10 に対して 1 回、7 に対して 1 回の更新を行います。