create or replace procedure insert_screen_asn_pre(PAGE_NUMBER int) as type cursors is ref cursor; curs cursors; V_SUP_NAME SCREEN_ASN_PRE.Sup_Name%type; V_ASN_CODE SCREEN_ASN_PRE.Asn_Code%type; V_ARRIVAL_PRE SCREEN_ASN_PRE.Arrival_Pre%type; nums int:=0; begin open curs for select sup.name,a.code,a.estimate_date from wms_asn a left join wms_organization sup on sup.id = a.supplier_id where a.status in ('OPEN','ACTIVE') and a.estimate_date is not null and not exists(select 1 from SCREEN_ASN_PRE sc where sc.asn_code = a.code) ; loop fetch curs into V_SUP_NAME,V_ASN_CODE,V_ARRIVAL_PRE; exit when curs%notfound; insert into SCREEN_ASN_PRE(TYPE,Sup_Name,ASN_CODE,ARRIVAL_PRE) values('预到货预警',V_SUP_NAME,V_ASN_CODE,V_ARRIVAL_PRE); nums:= nums+1; --dbms_output.put_line('loop:'||nums); if nums >= PAGE_NUMBER then commit; nums:=0; end if; end loop; --dbms_output.put_line('end loop:'||nums); if nums >0 then commit; nums:=0; end if; --dbms_output.put_line('end if:'||nums); exception when others then dbms_output.enable(buffer_size => null); dbms_output.put_line(dbms_utility.format_error_backtrace); --dbms_output.put_line('sqlcode:'||sqlcode); dbms_output.put_line('sqlerrm:'||sqlerrm); rollback; close curs; end;
begin insert_screen_asn_pre(3); end; --输出,假设curs值等于10 loop:1 loop:2 loop:3 loop:1 loop:2 loop:3 loop:1 loop:2 loop:3 loop:1 end loop:1 end if:0
相关推荐
ORACLE INSERT INTO SELECT *FROM 分批提交例子
标题 存储过程及函数 procedure 的建立和调用 function的建立和调用 标题 参数的调用(in 模式为按址调用,out / in out模式为按值调用。NOCOPY 强行转换成按址调用)。 标题 软件包及封装 软件包(PACKAGE...
1. COMMIT_FORM和COMMIT 都对form和数据库进行提交。针对form上面的数据变动提交到后台数据库,同时数据库提交数据。 2. DO_KEY(‘COMMIT_FORM’) 它会首先执行KEY-COMMIT触发器里面的代码,如果没有这个触发器,则...
pay_able_bill_commit.zip
TODO(jar): This is not needed when TCMalloc_PageMap1_LazyCommit has an API supporting commit and reservation of memory.
This file implements commit-related functionality of the LEB properties subsystem.
jdk用法 include_recipe 'oracle_jdk'贡献分叉它( ) 创建您的功能分支( git checkout -b my-new-feature ) 提交您的更改( git commit -am 'Add some feature' ) 推送到分支( git push origin my-new-feature ...
.archBLOCK_TYPE_START_COMMIT_D70A3465D4EE4E9_045410_dump_1st.dmp
two_procedure_commit 两个程序commit的简单java实现
公司要迁移git仓库,从仓库A迁移到仓库B,为了保留commit信息,特整理了两种方便的方式实现git仓库快速迁移,以及其他同事能快速切换库的建议。 第一种:使用镜像推送 git push --mirror,这种方式网上都有,算是...
这样的好处,减少了事务数据丢失的概率,而对底层硬件的 IO 要求也没有那么高(log buffer 写到文件系统中,一般只是从 log buffer 的内存转移
04★Git入门★第一次提交_git_commit
git-ctm::hourglass_not_done:git Commit Time Machine:hourglass_done:
Git预提交钩子,用于检查Python代码的编码样式。 挂钩需要pep8。 它将检查带有.py扩展名的文件和包含#!文件#! (shebang)和python在第一行。 受到塞巴斯蒂安·达尔格伦(Sebastian Dahlgren)的启发,并在一定程度...
提交消息编辑器 以方便的方式编辑提交消息。 特征 从最近的提交中选择一个较早的提交消息 编辑表单中的提交消息 可定制的常规提交消息模板 可自定义的表单字段 修改最后的提交信息 原生外观(由) 出厂设置遵循规范...
可以看到,只有1才能真正地保证事务的持久性,但是由于刷新操作 fsync() 是阻塞的,直到完成后才返回,我们知道写磁盘的速度是很慢的,因此 MySQL 的性能
This file is part of UBIFS for Linux v2.13.6.
This file is part of UBIFS.
qemu_git_show_numstat_since_first_commit