create or replace function f_user_qr_qrycalloutuser ( i_in_querytype in number, str_o_result out varchar2 ) return sys_refcursor is cur_result sys_refcursor; begin str_o_result := '00000000'; open cur_result for select t.configname, t.configname, t.configtype, t.configvalue, t.configname, t.configtype from usdpc45_zxy.t_config@HPC2 t; exception when others then open cur_result for select 'x' from dual where 1 = 0; return cur_result; end f_user_qr_qrycalloutuser; /
使用系统游标返回数据集
猜你喜欢
转载自jis117.iteye.com/blog/1977972
今日推荐
周排行