首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

批量数据勘误

2012-07-15 
批量数据订正beginfor x in ( select order_id, rownum rfrom billing_order where status ! closed an

批量数据订正

begin   for x in ( select order_id, rownum r  from billing_order where status != 'closed' and pc2_type = '1' )   loop        update billing_order  set pc2_type = '4',gmt_modified = sysdate         where order_id = x.order_id;        if ( mod(x.r,1000) = 0 ) then           commit;        end if;   end loop;   commit;end;
?

热点排行