天天看点

Oracle视图

1、视图的作用

(1)表需要占用磁盘空间,而视图不需要

(2)视图不能添加索引

(3)视图可以简化复杂查询

(4)视图可提高安全性

2、视图或者修改的创建

create or replace view 视图名 as select

语句 [with read only];

create or

replace view myview as select * from emp where

sal<1000;

3、删除视图

drop 视图名;