大侠帮助看看,这个过程为什么出错

hansland 2004-04-24 11:15:18
大侠帮助看看,这个过程为什么出错

create or replace procedure jfsj_cust_terminal_retrv_gprs(p_gprs in varchar2)
as
gprs varchar2;

begin
gprs :=p_gprs;
select CUST_NAME,MSISDN,COUNTY,AGE,VIP_FLAG
from jfsj_cust_terminal_gl where
gprs_zc=gprs
or gprs_sy=gprs;

end jfsj_cust_terminal_retrv_gprs;

出错信息如下:

Compilation errors for PROCEDURE ZHYW.JFSJ_CUST_TERMINAL_RETRV_GPRS

Error: PLS-00215: String length constraints must be in range (1 .. 32767)
Line: 3
Text: gprs varchar2;

Error: PL/SQL: Item ignored
Line: 3
Text: gprs varchar2;

Error: PLS-00320: the declaration of the type of this expression is incomplete or malformed
Line: 6
Text: gprs :=p_gprs;

Error: PL/SQL: Statement ignored
Line: 6
Text: gprs :=p_gprs;

Error: PLS-00320: the declaration of the type of this expression is incomplete or malformed
Line: 9
Text: gprs_zc=gprs

Error: PL/SQL: SQL Statement ignored
Line: 7
Text: select CUST_NAME,MSISDN,COUNTY,AGE,VIP_FLAG

...全文
32 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
rb41991 2004-04-25
  • 打赏
  • 举报
回复
你用的是什么数据库????
这样试试看!!!!
create or replace procedure jfsj_cust_terminal_retrv_gprs(p_gprs varchar(2))
define gprs varchar(2);

begin
gprs :=p_gprs;
select CUST_NAME,MSISDN,COUNTY,AGE,VIP_FLAG
from jfsj_cust_terminal_gl where
gprs_zc=gprs
or gprs_sy=gprs;

end jfsj_cust_terminal_retrv_gprs;

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧