bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL ALTER VIEW Keyword

Alter View

In SQL Server, a view can be updated with the ALTER VIEW command.

The following SQL adds the "City" column to the "Brazil Customers" view:

Example

ALTER VIEW [Brazil Customers] AS
SELECT CustomerName, ContactName, City
FROM Customers
WHERE Country = "Brazil";

Query The View

We can query the view above as follows:

Example

SELECT * FROM [Brazil
 Customers];

Previous

SQL ALTER TABLE Keyword

Next

SQL AND Keyword