orcale update批量更新

A表字段 ruleid,ruletype B 表字段ruleid,ruletype
ruleid在两表是相同的,我想根据相同的ruleid把B表的ruletyppe 更新到A表的ruletyppe 可以批量修改吗
update A a set a.ruletype=(select b.ruletype from B b
left join B on b.ruleid=a.ruleid) 然后怎么写 直接 left join sql报为正确结束

update 批量修改 应该是放在循环里 逐个修改吧,这样写是不对的呀