oracle 函数里如何根据传递进来的参数声明变量
CREATE OR REPLACE function SCOTT.INFO
(tab in varchar2,dept_no in number)
return t_emp pipelined
is
v r_emp;
type t_cur_c_sif is ref cursor;
c_sif t_cur_c_sif;
tabl dept%rowtype;
tab就是传递进来的表名,我想声明tabl的时候用动态的方法声明,比如:
tabl tab%rowtype;但这样要报错