使用create view 語句創建視圖
create [or replace][force | noforce] view [user.] viewName
(column [,column2]...)
as query
[with check option[Constraint constraint]]
[with read only]
or replace 表示同名視圖存則使用新視圖替代已有視圖
force 強制創建視圖考慮基表否存否具有使用基表數據權限
noforce 只有基表存且具有權限才創建視圖
user 表示創建視圖用戶名
viewName 表示要數據庫上創建視圖名稱
column 指定視圖列名
query 表示生成視圖select語句
with check option 指定強制檢查通過視圖修改數據操作
constraint 表示指定約束名稱
with read only 表示創建視圖只能檢索數據能修改數據
浙公網安備 33010602011771號