请教各位这个存储过程哪出语法不对,为什么会有编译错误?
createorreplaceprocedurepiscursorcisselect*fromemp2forupdate;beginforv_tempincloopif(...
create or replace procedure p is cursor c is select * from emp2 for update;begin for v_temp in c loop if(v_temp.deptno = 20) then update emp2 set sal * 2 where current of c; end if; end loop;end;
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询