for...in() statement (similar to the alias of the query field), here is the alias of the result set

for...in() statement (similar to the alias of the query field), here is the alias of the result set

 

 PROCEDURE TMP_CHKMESEND_ALL(P_INPARA VARCHAR2)

  IS

    V_CHKTYPE INTEGER;

  BEGIN

    V_CHKTYPE:=TO_NUMBER(FC_GETPARA(P_INPARA,'CHKTYPE'));

    FOR info IN (

    SELECT INFO_KEY FROM TB_WH_INFORMATION

     WHERE CHK_TYPE='B'

       AND LOOK_TIMES=CASE WHEN V_CHKTYPE=0 THEN 0 ELSE LOOK_TIMES END)////The result of the query is used as a result set similar to a list, combined with loop to loop this list

    LOOP

      TMP_CHKMESEND(info.INFO_KEY);

    END LOOP;

  END;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326450932&siteId=291194637