`
lzj0470
  • 浏览: 1247042 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

如何创建存储过程

阅读更多
隐式cursor示例:

create or replace procedure get_news
as   
counts number;
begin  
  for rec in (select test,name from test) loop
    select count(*) into counts from test1 where id=rec.name;
      dbms_output.put_line('insert='||rec.test||'--'||counts);
  end loop; 
end;

参考资料:
http://diegoball.iteye.com/blog/462979
http://kiral.iteye.com/blog/1129908
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics