PL/SQL与测试游标返回结果集
2008-12-18 14:47
232 查看
create or replace package MAnlyse
is
-- Public type declarations
type M_Cursor is ref cursor;
-- Public function and procedure declarations
procedure anlyse(
myCursor out M_Cursor,
V_id in Number
);
end ;
create or replace package body MAnlyse
is
procedure anlyse
(
myCursor out M_Cursor,
V_id in Number
)
is
begin
open myCursor for
select * from param_city t where t.id>V_id ;
end anlyse;
end MAnlyse;
这些都在PL/SQL 中执行成功后,我们点击存储过程名anlyse右键,测试。弹出测试窗口后在窗口下面的表格中输入v_id的值,点击执行,成功后点击<Cursor>后的小按钮,就可以查看结果。
is
-- Public type declarations
type M_Cursor is ref cursor;
-- Public function and procedure declarations
procedure anlyse(
myCursor out M_Cursor,
V_id in Number
);
end ;
create or replace package body MAnlyse
is
procedure anlyse
(
myCursor out M_Cursor,
V_id in Number
)
is
begin
open myCursor for
select * from param_city t where t.id>V_id ;
end anlyse;
end MAnlyse;
这些都在PL/SQL 中执行成功后,我们点击存储过程名anlyse右键,测试。弹出测试窗口后在窗口下面的表格中输入v_id的值,点击执行,成功后点击<Cursor>后的小按钮,就可以查看结果。
相关文章推荐
- SQL存储过程测试(7)——当待测存储过程返回out参数时 如何判断测试结果是否通过
- c#中利用pl/sql匿名块和游标获取多个结果集
- [Oracle]高效的PL/SQL程序设计(五)--调用存储过程返回结果集
- [Oracle]高效的PL/SQL程序设计(五)--调用存储过程返回结果集
- [Oracle]高效的PL/SQL程序设计(五)--调用存储过程返回结果集
- pl/sql 创建并执行oralce存储过程,并返回结果集
- pl/sql 创建并执行oralce存储过程,并返回结果集
- PL/SQL中读取返回游标的存储过程
- oracle pl/sql 程序块,游标,生成测试数据
- 在.NET中调用PL/SQL返回游标的取得
- [Oracle]高效的PL/SQL程序设计(五)--调用存储过程返回结果集
- oracle pl_sql 通过游标循环取数字的方法
- pl/sql函数结果拼接
- PL/SQL 游标
- Oracle 动态SQL返回单条结果和结果集
- ORACLE PL/SQL编程之把游标说透
- 如何从页面输入SQL查询条件得到后台结果返回前台页面
- 多线程信号返回测试结果
- Spring整合Mongodb,Maven的依赖,Spring配置,MongoDB的公共操作类,使用SpringMVC的Controller进行测试并返回结果的案例
- PL/SQL游标-(抄)详细说明举例