Oracle 循環調用存儲過程


create or replace procedure p_test_loop as --定義一個游標,並將查詢結果集賦值給它 CURSOR c1 IS select * from tbltest where dept='test'; begin --循環獲取游標里的某個字段的值 for cardinfo in c1 loop p_testproc(cardinfo.cardid);--使用這個值做一些事情 end loop; end;  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM