current of 使用
生活随笔
收集整理的這篇文章主要介紹了
current of 使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--Where Current Of語句允許你更新或者是刪除最后由cursor取的記錄
declarecursor c_emp is select * from emp2 for update;beginfor v_emp in c_emp loopif substr(v_emp.ename,1,1)='S' thenupdate emp2 set comm = nvl(comm,0)+1000 where current of c_emp;end if;end loop;commit;end;
select * from emp2;
declarecursor c_emp is select * from emp2 for update;beginfor v_emp in c_emp loopif substr(v_emp.ename,1,1)='S' thenupdate emp2 set comm = nvl(comm,0)+1000 where current of c_emp;end if;end loop;commit;end;
select * from emp2;
總結
以上是生活随笔為你收集整理的current of 使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: NVelocity标签使用详解
- 下一篇: ASP.NET MVC 5调用其他Act