1.测试表表结构如下

2.表中数据如下
3.开始实验视图使用中的一些注意事项
实验一:


结论:建立视图添加with cheak option 的约束后,对视图进行dml操作时,会在where后面的条件记性校验
实验二:


结论:
基表中含有非空列,所建的视图不包含此非空列,无法对此视图进行插入操作
实验三:

结论:建立视图时,不能出现含有分组函数
总结以上:
Rules for Performing DML Operations on a View
You cannot add data through a view if the view includes:
Group functions
A GROUP BY clause
The DISTINCT keyword
The pseudo column ROWNUM keyword
Columns defined by expressions
NOT NULL columns in the base tables that are not selected by the view
(以上内容出自官网文档)