create or replace procedure selectFolder(x in number,y in varchar2,z out number) is a varchar2(50); cc number;d sys_refcursor;total number;one number; begin select count(*) into z from file_size where node_id=x and type=y; end;
create or replace procedure countFolder(a in varchar2) is node_id number;localname varchar2(255);num number;d sys_refcursor; begin open d for select child_node_id,qname_localname into node_id,localname from alf_child_assoc where ff=a; loop fetch d into node_id,localname;exit when d%notfound; --调用selectFolder-- selectFolder(node_id,a,num); dbms_output.put_line(localname||' '||num); end loop; end;