【发布时间】:2023-02-13 20:17:31
【问题描述】:
我有一个sql更新语句:
update table1 set col1='val' where id in (select t2.id
from table2 t2
inner join table1 t1 on t1.id = t2.id
where someCondition);
有没有更好的写法?我想以某种方式不使用连接,因为我在更新构造中有表。
【问题讨论】:
标签: sql sql-update