打印本文 打印本文 关闭窗口 关闭窗口
PL/SQL综合实例
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1799  更新时间:2009/4/22 21:59:57  文章录入:mintao  责任编辑:mintao
>     set serveroutput on
    /*定义6个入口变量,分别对应graduate数据表中的专业课和总分分数线*/
    declare
        score1 number(4,1);
        score2 number(4,1);
        score3 number(4,1);
        score4 number(4,1);
        score5 number(4,1);
        scoretotal number(5,1);
    /*将分数线赋值,在这里修改各值就代表不同的分数线*/
    begin
       score1:=50;
       score2:=56;
       score3:=60;
       score4:=62;
       score5:=64;
       scoretotal:=325;
    /*调用处理过程*/
       scott.graduateprocess(score1,score2,score3,score4,score5,scoretotal);
    end;
    ――――――――――――――――――――――――――――――――――――――――――――
    【配套程序位置】:第9章\ mainprocess.sql。
    在上述过程设计中,综合使用了异常处理、游标、变量等PL/SQL程序设计要素,通过主程序向带参数执行的过程传递参数。

执行结果


上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口