logo
  • 教程列表
  • SO官方文檔
  • 遊標
    • 引數化 FOR 迴圈游標
    • 隱式 FOR 迴圈遊標
    • 處理遊標
    • 使用 SYS REFCURSOR
  1. StackOverflow 文件
  2. plsql 教程
  3. 遊標
  4. 引數化 FOR 迴圈游標

引數化 FOR 迴圈游標

Created: November-22, 2018

DECLARE
  CURSOR c_emp_to_be_raised(p_sal emp.sal%TYPE) IS 
    SELECT * FROM emp WHERE  sal < p_sal;
BEGIN
  FOR cRowEmp IN c_emp_to_be_raised(1000) LOOP
    dbms_Output.Put_Line(cRowEmp .eName ||' ' ||cRowEmp.sal||'... should be raised ;)');
  END LOOP;
END;
/
  • 隱式 FOR 迴圈遊標
  • 遊標

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明