由于查询的数据表名无法事先确定且数据量较大,只能考虑拼写 sql 串返回查询结果 , 如:
vc_sql ;= 'select * from vartable' 通过函数返回记录集形式处理。 简单过程书写如下;
create function myfunc(vc_sql varchar2)
is
begion
   execute immediate vc_sql;
end;--过程调用如下:
vc_sql ;= 'select * from vartable';
--cursor curref
curref ;=  myfunc(vc_sql);现不知如何在过程中接收函数返回结果,可以用 cursor 接收吗? 如何实现, 请高手相助!