|
本帖最后由 MEI 于 2014-10-18 10:41 编辑
declare aa number(15,2); l_cnt varchar2(200);
i_yr int :=11;
i_curCode varchar2(100) :='001';
i_vDate date := sysdate;
i_valExpr varchar2(100) := 'haha';
i_branchNovarchar2(100) := '00';
begin l_cnt := 'Ns_Gls_AutoVal(132,:1,:2,:3,:4)';
executeimmediate 'select ' || l_cnt || ' from dual' into aa usingi_curCode,i_vDate,i_valExpr,i_branchNo; dbms_output.put_line(aa);
end;
|
|