oracle调用array参数存储过程

declare
  -- Non-scalar parameters require additional processing 
  
   files  tyt_gas2014_search;
   
   temp  tyo_gas2014_search:=tyo_gas2014_search('CREATOR',1,'test',1);
   temp1 tyo_gas2014_search:=tyo_gas2014_search('CREATETIME',4,'2015/4/17 0:00:00',3);
   temp2 tyo_gas2014_search:=tyo_gas2014_search('CREATETIME',3,'2015/6/18 0:00:00',3);
   
 
begin
 
  -- Call the procedure
 
   files := tyt_gas2014_search(); 
   files.extend(3); 
   
   files(1):= temp;
   files(2):= temp1;
   files(3):= temp2;
 
  pkg_gas2014_pagehelp.p_gas2014_gettablepagewhere(files => files,
                                                   sqlwhere => :sqlwhere);
end;

 

posted @ 2015-06-19 11:30  qtchao520  阅读(616)  评论(0)    收藏  举报