Reputation: 63
I am doing a tutorial that is teaching me how to create a stored procedure. The AS keyword has meant to me Alias until now, but here, it seems to mean something else. What does it mean?
USE AdventureWorks
GO
CREATE PROCEDURE dbo.uspGetAddress @City nvarchar(30)
AS
SELECT *
FROM Person.Address
WHERE City = @City
GO
Upvotes: 2
Views: 167
Reputation: 109080
The AS
here is part of the required syntax of the CREATE PROCEDURE
statement.
(See Microsoft Docs.)
As such it is pure syntax, it has no real "meaning" on its own.
Upvotes: 5