The CREATE VIEW
command creates a view.
A view is a virtual table based on the result set of an SQL statement.
The following SQL creates a view that selects all customers from Brazil:
CREATE VIEW [Brazil Customers] AS
SELECT CustomerName, ContactName
FROM Customers
WHERE Country = "Brazil";
We can query the view above as follows:
SELECT * FROM [Brazil Customers];
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!