Welcome 微信登录

首页 / 数据库 / MySQL / Oracle ref 动态游标

Oracle ref 动态游标:create or replace procedure pro_cursor_type_V
 
as
t_tmp table3%rowtype;
type c_type is ref cursor;
cur c_type;
  v_taname varchar2(100);
begin
v_taname:="aa";
open cur for "select * from table3 where taname=:a order by taid desc" --a只是绑定变量的占位符以 =: 符号进行绑定
  using v_taname;
  dbms_output.put_line("名称有");
  loop
  fetch cur into t_tmp;
  exit when cur%notfound;
  dbms_output.put_line("名称为"||t_tmp.taname||"日期为:"||t_tmp.indate);
  end loop;
end pro_cursor_type_V;Oracle 使用游标删除单行MongoDB的安装、主从配置、Replica Set配置相关资讯      Oracle入门教程 
  • 使用SQLT来构建Oracle测试用例  (08/28/2014 06:17:41)
  • Oracle AUTOTRACE 统计信息  (02/18/2013 08:25:40)
  • Linux Oracle服务启动&停止脚本与  (12/16/2012 14:42:37)
  • Oracle入门教程:把表和索引放在不  (07/13/2013 11:21:40)
  • Oracle直接路径加载--append的深度  (02/07/2013 08:26:36)
  • Oracle Connect By用法  (12/16/2012 13:36:10)
本文评论 查看全部评论 (0)
表情: 姓名: 字数