function f_agent(agent in string,scl in sys_refcursor) return string is robot scl%rowtype; begin open scl; loop fetch scl into robot; exit when scl%notfound; null; end loop; close scl; return ''; end f_agent;
function f_agent(agent in string,scl in sys_refcursor) return string is robot scl%rowtype;