日期:2014-05-16 浏览次数:20623 次
create or replace function type_function(userno varchar2) return varchar2 is type yyy is table of varchar2(10) index by binary_integer; xx yyy; vv varchar2(40); begin vv :='1233'; select mobileid into xx(20) from tuserinfo where userno=userno; vv :=xx(20); return vv; end;
select type_function('00060577') from dual;
create or replace function type_function(userno1 varchar2) return varchar2 is type yyy is table of varchar2(10) index by binary_integer; xx yyy; vv varchar2(40); begin vv :='1233'; select mobileid into xx(20) from tuserinfo where userno=userno1; vv :=xx(20); return vv; end;