-1
我正在創建一個存儲過程。創建的代碼如下所示。SQL Server在創建存儲過程期間拋出錯誤msg102
CREATE PROCEDURE AITS_Card_POS_Save
-- Add the parameters for the stored procedure here
@cardnum nvarchar(20)=null,
@CrdTyp nvarchar(50)=null,
@sInno int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
declare @crtid as int
-- Insert statements for procedure here
select @crtid=crtid from creditcardtype_tbl where [email protected]
insert into CreditCard_POS_tbl(Cardnum,crtid,Slinvid) values(@cardnum,@crtid,@sInno)
Go
在執行它我收到錯誤如下
消息102,級別15,狀態1,過程AITS_Card_POS_Save,行21 附近有語法錯誤)「。
可能是什麼原因?
開始但沒有結束。 – 2015-02-24 13:06:09