您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Oracle存储过程for语句用法

2024/4/21 22:15:34发布19次查看
oracle存储过程for语句用法,并且每500条提交一次。 create or replace procedure ps_test is begin for i in 1..10000 loop --delete from test where name=to_char(i); - insert into test values(to_char(i),i+2); if mod(i,500) = 0 then commit; end if;
oracle存储过程for语句用法,并且每500条提交一次。
create or replace procedure ps_test is
begin
       for i in 1..10000
       loop
         --delete from test where name=to_char(i);
-
insert into test values(to_char(i),i+2);
       if mod(i,500) = 0 then
       commit;
       end if;
       end loop;
       commit;
end ps_test;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product