数据库技术培训课程讲义详解.ppt

PL/SQL开发--程序流程控制 while循环结构 实例 set serveroutput on; declare i number(5):=1; total number(5):=0; begin while i=100 loop total:=total+i; i:=i+1; end loop; dbms_output.put_line(1-100之间的和:||total); end; PL/SQL开发--程序流程控制 练习 1、打印乘法口诀表 2、打印水仙花数 3、编写程序,向表中输入10000条记录 PL/SQL开发--存储过程 创建存储过程 create [or replace] procedure 存储过程名(形式参数) is|as 本地变量声明 begin 执行语句 exception 异常处理代码 end; PL/SQL开发--存储过程 创建存储过程--实例 create or replace procedure change_salary(v_empno in number,v_new_sal in number) is v_name emp.e

文档评论(0)

1亿VIP精品文档

相关文档