我正在try 从一个表中删除所有行,除了同时从同一个表中 Select 数据的最大值为revision_id
的行:
delete from
node_revision__body
where
entity_id=4
and revision_id not in (
select
max(revision_id)
from
node_revision__body
where
entity_id=4
)
这就抛出了错误
不能在中指定要更新的目标表‘NODE_REVISION__BODY’ FROM子句
有没有可能以某种方式更改查询以实现该目标?