游标卡尺,游标。。。。


create or replace procedure getok
as
cursor mycur is select ids,name from aaa where name not in (select names from ok);
vempno aaa.ids%type;
vename aaa.name%type;
begin
open mycur;
loop
fetch mycur into vempno,vename;
exit when mycur%notfound;
if mycur%found then
insert into ok values(vempno,vename);
end if;
end loop;
dbms_output.put_line('I Found You!'||mycur%rowcount||'行');
close mycur;
end getok;
Tags:  游标卡尺读数 存储过程游标 mysql游标 sql游标 游标卡尺

延伸阅读

最新评论

发表评论