我创建了一个存储过程并收到了这些错误。我该如何纠正这个问题?
Msg 156, Level 15, State 1, Procedure usbinsertbookDatainto, Line 8
Incorrect syntax near the keyword 'AS'.
Msg 137, Level 15, State 2, Procedure usbinsertbookDatainto, Line 22
Must declare the scalar variable "@currentnoofcopiesavillable".
答案 0 :(得分:3)
我们必须确定实际的存储过程SQL,但错误如下:
AS
关键字附近,您在第8行附近输入错误/语法无效DECLARE
d @currentnoofcopiesavillable
。例如: DECLARE @currentnoofcopiesavillable int;