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;但这样要报错
(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;但这样要报错
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货