创建只读视图(非只读视图只需要去掉with read only即可):
create view students_v
as
select sno,sname from students
with read only
视图的删除:DROP VIEW VIEW_NAME语句删除视图。
删除视图的定义不影响基表中的数据。
只有视图所有者和具备DROP VIEW权限的用户可以删除视图。
视图被删除后,基于被删除视图的其他视图或应用将无效。
基表数据修改后,查询视图时,显示的数据也同步被修改。