bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL ALTER VIEW Keyword

Concept visual

SQL ALTER VIEW Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

ALTER VIEW Keyword

Previous

❮ SQL Keywords

Next

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 Keywords

Next

Previous

SQL ALTER TABLE Keyword

Next

SQL AND Keyword