oracle ebs reports开发如何获得for循环的次数??????
oracle ebs reports开发,有一个循环如下:
FOR REC_TGH IN (select HEAD.TBGC_NO --单号
from zdoe_tbgc_head head
where ASS_SEGMENT1='1111-000000'
) loop
END LOOP;
如何获得这个循环的次数??????
------解决方案--------------------
select count(HEAD.TBGC_NO)
into v_count --变量v_count 存放当前循环次数
from zdoe_tbgc_head head
where ASS_SEGMENT1='1111-000000'