0
CREATE PROCEDURE CUSTOMER
@LastName nvarchar(50) = NULL,
@FirstName nvarchar(50) = NULL
AS
BEGIN
SET NOCOUNT ON;
SELECT @LastName, @FirstName,
FROM CUSTOMER
WHERE FirstName = @FirstName AND LastName = @LastName
END
GO
對許多逗號? –
那裏有多個錯誤。但錯誤消息是因爲@ @ FirstName後的逗號:'SELECT @LastName,@FirstName FROM .....' – Lamak
謝謝。但是現在它說:消息2714,級別16,狀態3,過程CUSTOMER,行21 數據庫中已經有一個名爲'CUSTOMER'的對象。 – Gina