SQL 關(guān)鍵字參考
該CREATE OR REPLACE VIEW命令將更新視圖。
以下SQL將"City"列添加到“巴西客戶”視圖:
CREATE OR REPLACE VIEW [Brazil Customers] AS SELECT CustomerName, ContactName, City FROM Customers WHERE Country = "Brazil";
我們可以查詢以下視圖:
SELECT * FROM [Brazil Customers];