一.自定义函数 格式: create or replace function 函数名(参数名 参数类型...) return 返回值类型 as xx vachar2(20) --申明变量 begin --开始 --编写逻辑位置 return xxxx end 函数名: --结束 例1:将名为WARD员工的工资和所有的员工的工资进行比较.…
一:基本循环 LOOP 循环体: 退出循环: )IF condition THEN exit; END IF; ) exit WHEN condition; END LOOP; 二:WHILE循环 WHILE condition LOOP sequence_of_statements END LOOP; 三:FOR循环 正向FOR循环:从小值到大值迭代 FOR counter IN initial_value .. final_value LOOP sequence_of_statements;…