update moodlesocialuser
set moodlesocialuser.deleted=deleted+1
where id IN (
select m1.id
from moodlesocialuser m1
join moodlesocialpost m2 on m1.id=m2.userid
where m2.module='blog'
and m1.deleted='0'
and url like 'http%'
and m1.id NOT IN (
select id from moodlesocialcourse_display
)
);
我无法进行更新并从同一张表中进行选择。
错误 1093 (HY000):您不能在 FROM 子句中指定目标表 'moodlesocialuser' 进行更新。
我怎样才能做到这一点?