Krisztian Toth
Krisztian Toth

Reputation: 63

T-SQL: What does the AS keyword mean in this context?

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

Answers (1)

Richard
Richard

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

Related Questions