oracle pl/sql编程 游标cursor

不带参数的游标

fetch 取出  当执行open c时才执行select *语句 并将结果集加载到内存中去



cursor与循环结合使用 进行所有记录遍历

cursor and while循环

cursor and for循环  最常用的
  带参数的游标



用法相当于带参数的函数

可更新的游标

  更新当前游标所指向位置的数据


猜你喜欢

转载自iseeyouavril.iteye.com/blog/1871172