本文主要是介绍Oracle存储过程基本语法结构,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Oracle存储过程语法结构,最简单的结构了,收藏一下。
create or replace procedure PRC_INTORGEMPNO_UP
is|as --is或者as都可以totalnum number;name varchar2(30);
begindeclare cursor cur_empno is select empno from empinfo where rownum<10;cur_val cur_empno%rowtype; --可要可不要begin--for循环for cur_val in cur_empno loopif cur_val.empno = 'EMP0005' thencontinue;end if;dbms_output.put_line(cur_val.empno);end loop;end;end PRC_INTORGEMPNO_UP;
这篇关于Oracle存储过程基本语法结构的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!