V_CNT1 NUMBER; -- 변수 설정
FOR V_CNT1 IN ( SELECT T.REC_NO
FROM IF_PLM2ERP_LSA T
WHERE T.PARENT_ID = P_OBJ_ID ) LOOP
SELECT IPL.LAYER_NO
INTO V_LAYER_NO
FROM IF_PLM2ERP_LSA IPL
WHERE IPL.REC_NO = V_CNT1
;
SELECT IPL.LAYER_SEQ
INTO V_LAYER_SEQ
FROM IF_PLM2ERP_LSA IPL
WHERE IPL.REC_NO = V_CNT1
;
이런식으로 돌리는건데 포문을 제가 잘못 넣은건가요? ㅋ;;