遊標的使用,遊標使用

來源:互聯網
上載者:User

遊標的使用,遊標使用

定義遊標:

    cursor calenderStatus_cur     is    select * from ut_calenderStatus ;    vr_calenderStatus      ut_calenderStatus % rowtype;


開啟遊標,提取遊標中的資料到遊標行中:

    open calenderStatus_cur;        loop          fetch calenderStatus_cur into vr_calenderStatus;          exit when calenderStatus_cur % notfound;          up_日曆_產品開放期設定(pi_serviceid,pi_opid,vr_calenderStatus.Calenderstatus,vr_calenderStatus.Fundcode,'0',pi_rq,pi_begin,pi_end,                                       vr_calenderStatus.m,vr_calenderStatus.n,vr_calenderStatus.Prolong,po_returnmsg ,po_returncode);           if po_returncode <> '0000' then           rollback;           return;          end if;                  end loop;    close calenderStatus_cur;


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.