with read only ---工作备忘2016/02/15

来源:互联网 发布:windows字体下载大全 编辑:程序博客网 时间:2024/06/05 18:30

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,只是查看,不做做更新。速度上会加快,不需要加锁。

0 0
原创粉丝点击