Aze*_*lah 4 oracle oracle10g oracle11g
我创建了一个简单的视图,但在创建视图时忘记添加 WITH READ ONLY。现在我想改变视图并添加 WITH READ ONLY 选项。对它的查询是什么?
alter view x read only;
Run Code Online (Sandbox Code Playgroud)
在11.2中添加,但不幸的是仅用于编辑视图。所以有可能在未来的某个版本中这将扩展到常规视图:)
直到使用简单的创建或替换视图
create or replace view x as
select * from dual /* your query */
with read only;
Run Code Online (Sandbox Code Playgroud)
或者
create or replace view x as
select * from dual /* your query */
with check option;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9707 次 |
| 最近记录: |