oracle 批量更新数据
表 temp 数据700w
现在需要把temp表中的字段status改为0。
情况描述完毕,直接上方法:
在pl/sql中执行脚本:
declare
begin
for vs in (select rowid rid from temp)
loop
update temp t set t.status= '0' where rowid = vs.rid;
end loop;
commit;
end;