【发布时间】:2012-11-02 02:46:18
【问题描述】:
我正在尝试执行以下查询:
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 之间的连接表。
【问题讨论】:
-
您的查询工作正常。有什么问题?