新手,请高手看下这个存储过程哪个地方不对

createorreplaceprocedurepro_OARunTrace(@userid_0number,@userid_1number,@depart_0numbe... create or replace procedure pro_OARunTrace( @userid_0 number,@userid_1 number,@depart_0 number,@depart_1 number)
as
declare
cursor mrm_data is select userid,userdisplayname from ideal_pub.com_user where userid:=@userid_1;
m_rowtype mrm_data%ROWTYPE;
begin
open mrm_data;
loop
fetch mrm_data into m_rowtype;
exit when(mrm_data%notfound);
update ideal_oa.run_trace set userid=m_rowtype.userid,userdisplayname=m_rowtype.userdisplayname,departID:=@depart_1
where userid:=@userid_0 and flowid=605843 and departid:=@depart_0;
end loop;
close mrm_data;
commit;
end;
exception
when others
then
rollback;
end pro_OARunTrace;

call ideal_pub.pro_OARunTrace (1101490,1101489,16,16) ;
错误是ora-06550
展开
 我来答
百度网友b37ba8c
2013-01-22 · TA获得超过334个赞
知道小有建树答主
回答量:457
采纳率:0%
帮助的人:221万
展开全部
departID:=@depart_1
where userid:=@userid_0 and flowid=605843 and departid:=@depart_0;

把几个地方的 :=修改为=
多了‘:’
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式