数据库(Oracle)基本知识点总结
视图 标准视图 普通视图,又称为关系视图 内联视图 在使用SQL语句编写查询时临时构建的一个嵌入式的视图,又称内嵌视图 物化视图 存储查询的结果,之前称为快照 创建视图的语法 create [or replace][force | noforce] view [(alias[, alias]...)] as subquery [with check option [constraint]] [with read only [constraint]] 创建一个只读视图 create view CS_Students as select ID, first_name, last_name, major, current_credits from students where major='Computer Science' with read only 创建带 with check option 的视图 create or replace view his_classes as select department, course, description, max_students, current_students, num_credits, room_id from classes where department='his' with check option 多表视图