如何用一个临时表批量更新字段,例如有个店员表t_other_empl,需要更新一个ess_develop_code字段,创建一个同字段的临时表w_other_empl循环更新
declare
begin
for item in(
select * from w_other_empl t
)loop
update t_other_empl t
set t.ess_develop_code=item.ess_develop_code
where t.empl_code=item.empl_code;
--commit;
end loop;
end;