IT猫扑网文章教程

分类分类

oracle游标使用实例

2015-06-28 00:00作者:网管联盟

  declare

  counter number(2):=0;

  sm number(2):=0;

  cursor kc is

  select id from kingcat  natural join kingcat2;

  begin

  open kc;

  loop

  fetch kc into  counter;

  exit when kc%notfound;

  DBMS_output.put_line('su:'||counter);

  end loop;

  close kc;

  end;

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消