update A a set a.A2 = (select b.B2 from B b where b.B1=a.A1) where exists (select 1 from B where B.B1=a.A1)
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3