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
答案 0 :(得分: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