Oracle Ref Cursor的使用,以及返回记录数
来源:互联网 发布:张家口军事 知乎 编辑:程序博客网 时间:2024/06/14 01:51
可以通过下列代码了解Ref Cursor的使用,但是能得到返回的记录数吗?我现在以我这几天的研究的水平告诉大家,不行, 只有两个方法可以实现,1.循环两次游标,2.或者通过count(1) over ()添加一列,来得到返回的数据记录数。我觉得可能后者会更好,前者太笨了。 希望后续版本能改善这个问题。 declare type refcursor is ref cursor; --ref游标类型 infolist refcursor; --集合 customer bi_customer%rowtype; --行 customercode bi_customer.customercode%type;--字段 customername bi_customer.corporation%type; begin open infolist for select bi.* from bi_customer cf; --全部 loop fetch infolist into customer; exit when infolist%notfound; dbms_output.put_line('客户编号为;:'||''||customer.customercode||', 地址为:'||customer.address ); end loop; close infolist; end;
- Oracle Ref Cursor的使用,以及返回记录数
- 用 ref cursor 返回结果集并得到记录条数的问题
- Oracle ref cursor使用
- Oracle ref cursor使用
- Oracle ref cursor使用
- ORACLE ref cursor的简单使用
- oracle ref cursor的介绍
- oracle 的 REF CURSOR小结
- 关于oracle中动态游标的使用例子ref cursor
- 使用REF CURSOR处理Oracle的结果集
- oracle 存储过程及REF CURSOR的使用
- oracle 存储过程及REF CURSOR的使用
- Ibatis 中怎样使用 Oracle Ref Cursor
- oracle存储过程中使用Ref Cursor强类型游标返回结果集
- oracle字符集乱码及返回 REF CURSOR 的存储过程执行问题
- oracle 之游标 ref cursor的用法
- Oracle REF CURSOR 使用方法
- oracle ref -cursor
- SQL Server 2008新特性——策略管理
- VOIP开源项目源码地址
- Linux 网络设定
- [轉載]jQuery性能优化
- android CallCard.java/updateState(Phone phone)分析
- Oracle Ref Cursor的使用,以及返回记录数
- Maven2入门--超级简单
- MyEclipse8.5开发环境配置中SVN插件安装重点解析
- 电脑显示器(也称监视器)有声音,如何解决防骗
- @@fetch_status 的用法
- 关于struts标签bean:message(转)
- 调用约定
- 配置
- button添加一个确定提示框