您好,以下为思路与语法: 1 > update A a set a.column = 更新值 where a.a in (select a from b); 2> update A a set a.column = 更新值 where exists (SELECT 1 FROM B b WHERE 1=1 a.id = b.id) <推荐。性能高于思路①>
吥荟吢庝
2024-09-14 00:07:17
你是想拿B表中的数据更新A表还是仅仅是说A.a=B.a的时候将A表的数据修改
微浅笑°
2024-09-14 00:02:21
update a set a.column=??? where a.a in (select a from b);