【问题标题】:Store Procedure Errors存储过程错误
【发布时间】:2011-03-02 05:45:54
【问题描述】:

我创建了一个存储过程并收到这些错误。我该如何纠正这个问题?

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".

【问题讨论】:

    标签: sql sql-server-2005 stored-procedures


    【解决方案1】:

    我们必须看到实际的存储过程SQL才能确定,但​​错误如下:

    • AS 关键字附近,您在第 8 行附近输入错误/语法无效
    • 你还没有DECLAREd @currentnoofcopiesavillable。例如:

    DECLARE @currentnoofcopiesavillable int;

    【讨论】:

      猜你喜欢
      • 2012-06-01
      • 2016-02-08
      • 2023-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多