1、With Read Only 选项
有些需求不需要用户通过视图修改数据,则可以创建只读视图。创建只读视图应该使用read only选项,
其基本语法形式如下所示。
create or replace view 视图名称as 查询语句
with read only
其中,with read only选项表示该视图将被创建为只读视图。
“WITH READ ONLY ”
Specify WITH READ ONLY to indicate that the table or view cannot be updated.
这样等于通知ORALCE,只是查看,不做做更新。速度上会加快,不需要加锁。