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;但這樣要報錯
uj5u.com熱心網友回復:
實際上 t_emp 和 r_emp 都是外部宣告的。你在外部直接使用動態 SQL 不挺好的嗎?
uj5u.com熱心網友回復:
沒有這種騷操作哦轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/68267.html
標籤:開發
上一篇:sql陳述句求助
下一篇:請問下,ibatis判斷的寫法
