oracle中declare程序块用法
作者:互联网
--------批量处理大病无信息 DECLARE P_PERSONID NUMBER; P_SEQNO VARCHAR2 (36); P_REGISTERNO VARCHAR2 (18); BEGIN FOR p IN ( select substr(d1.medical_record_no, instr(d1.medical_record_no, '_') + 1, length(medical_record_no) ) persionid from db_upload d1 ) LOOP P_PERSONID := p.persionid; P_SEQNO := NULL; P_REGISTERNO := NULL; NHHIS.PRO_COMPUTE_DBSB_FEE_QW(P_PERSONID, P_SEQNO, P_REGISTERNO); commit; END LOOP; DBMS_OUTPUT.Put_Line (''); END;
标签:no,PERSONID,SEQNO,medical,用法,REGISTERNO,oracle,declare,d1 来源: https://www.cnblogs.com/ljjdyz/p/14752053.html