⑤使用游标更新或者删除数据 declare cursor my_cursor is select comm from emp for update; va number; begin open my_cursor; loop fetch my_cursor into va; exit when my_cursor%notfound; if va is null then delete from emp where current of my_cursor; end if; end loop; end;
declare
cursor my_cursor is select comm from emp for update;
va number;
begin
open my_cursor;
loop
fetch my_cursor into va;
exit when my_cursor%notfound;
if va is null then
delete from emp where current of my_cursor;
end if;
end loop;
end;
你这是存储过程,我想使用oci这个接口来实现,不知道可以吗
你这是存储过程,我想使用oci这个接口来实现,不知道可以吗
那我就不晓得了
哎,先是看OCCI,不行,看OCILIB还是不行,OCI也不行,我直接蛋疼了。不知道怎么办了