我试图执行以下查询:不能指定更新目标表中FROM子句
update table3 d set status = 'Complete'
where d.id in
(
select b.id from table1 a, table3 b, table2 c
where a.id = b.table1_id
and c.id = b.table2_id
and c.examId = 16637 -- will be passed in by user
and a.id in (46,47,48,49) -- will be passed in by user
);
所以,我试图更新的table3
多行。
table3
是table1
和table2
之间的连接表。
您所查询的只是正常工作。有什么问题? – nawfal