储存过程中的数组与可变数组
来源:互联网 发布:淘宝新开店铺没有关注 编辑:程序博客网 时间:2024/06/17 12:41
create or replace procedure pro_test
(
emp_cv in out cy_types.empinfotype
)
as
e_count exception;
v_count number(9);
type study is table of varchar2(20) index by binary_integer;
v_study study;
/*可变数组使用*/
type dates is varray(7) of varchar2(10);
v_dates dates:=dates('monday','tuesday','wednesday');
begin
open emp_cv for select * from cyg;
select count(*) into v_count from cyg;
if v_count>1 then
raise e_count;
end if;
exception
when e_count then
dbms_output.put_line('current count is:'||v_count);
for v_count in 1..5 loop
v_study(v_count):=v_count*100;
end loop;
for v_count in 1..5 loop
dbms_output.put_line(v_study(v_count));
end loop;
/*可变数组的用法*/
dbms_output.put_line(v_dates(1));
dbms_output.put_line(v_dates(2));
dbms_output.put_line(v_dates(3));
end;
- 储存过程中的数组与可变数组
- ORACLE储存过程合并数组
- OC中的可变数组
- java中的可变数组
- 数组与可变参数
- 可变数组与结构体
- 可变数组
- [可变数组]
- [可变数组]
- 可变数组
- 可变数组
- 可变数组
- 可变数组
- 可变数组
- 可变数组
- 结构体中的长度可变数组。
- 结构体中的 可变长数组
- 删除可变数组NSMutableArray中的重复数据
- fgets 之一
- SQL注入专题
- C# 线程使用
- 在循环广告条中添加链接
- .net创建空的控制台项目
- 储存过程中的数组与可变数组
- 判断二重启动
- vs2005创建CAB安装文件
- 对五个数进行插入,删除,排序等操作.
- oh my god windows 默认的FD_SETSIZE 居然是64
- 企业ERP人才流失各方面动因透析
- fgets 之二
- 函数作为参数的传递
- 使用nopage方法重新映射RAM