帮忙看一下这个存储过程,哪里有错误
create PROCEDURE proc_SMSzonedata (@iFileNumber varchar (200))
AS
declare @cState varchar (50);
declare @cTransactorDesc varchar (200);
declare @cTransactor varchar (20);
declare @ddlTime varchar (50);
--批量修改
begin
update tzonedata set cState=@cState,cTransactorDesc=@cTransactorDesc,cTransactor=@cTransactor,
dtCreateTime = date_add(dtCreateTime,INTERVAL @ddlTime HOUR) where iFileNumber in (@iFileNumber)
--发送短息
insert into tsms (cMSMContent,cMobileNum,iReceiverID,iSendID,iGroupID,dtSendTime,dtCreateDate,iIsSucceed)
select ('['+t1.cLocation+']'+t1.cQuestion+'['+t1.iFileNumber+']'),t2.cPhoneNum,t2.cUserDesc,'ylk','0', DATE_ADD(Now
(),INTERVAL 12 hour),now(),0
from tzonedata t1, tperson t2
where t1.iFileNumber in (@iFileNumber) and t1.cStreet=t2.cStreet and t1.cTransactor=t2.cUserDesc
end
总报语法错误,大家帮忙修改一下,谢谢了
存储
------解决方案--------------------那你为什么不直接发到mysql专区去啊?非要一帮不熟悉的人帮你看,本末倒置了吧。还有你每一小段拿出来调试嘛,先看看update那段输入参数后有没有错,然后SELECT 那段