输入banner图图片脚本导航/分类

Oracle 学习----游标(使用无参光标cursor)

declare
  cursor tt is select name,sal from temp;
  vname temp.name%type;
  vsal temp.sal%type;
begin
  open tt;
  loop
    fetch tt into vname,vsal;
    exit when tt%notfound;
    dbms_output.put_line(vname||‘-----‘||vsal);
  end loop;
  close tt;
end;
/

 

Oracle 学习----游标(使用无参光标cursor)

标签:ora   游标   etc   bms   .com   ima   declare   使用   alt