标题:[求助]oracle执行存储过程的问题!
只看楼主
qingxi
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2006-2-16
 问题点数:0 回复次数:0 
[求助]oracle执行存储过程的问题!

/*存储过程*/
create or replace procedure WLselect(earID in varchar2,dtid in varchar2,barcode in varchar2) is
strSelect varchar2(1000);
begin
strSelect:='create global temporary table yzTemp(yzEarID VARCHAR2(20),yzCustomerName varchar2(100),yzOutDate varchar2(10));'
||'insert into yzTemp'
||'select yzouttransfer.earid,customerName,yzouttransfer.outdate'
||'from yzouttransfer,customerinfo,tzintransfer'
||'where yzouttransfer.earid=tzintransfer.earid and tzintransfer.lycustomercode=customerinfo.customercode;'

||'select * from yzTemp;'
||'drop table yzTemp;';
execute immediate strSelect;

end WLselect;

/*执行存储过程语句*/

begin
wlselect('','','');
end;

会出现错误:"字符串无效!";

搜索更多相关主题的帖子: oracle 
2007-06-22 14:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-149504-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.051803 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved