在oracle 8g以后,创建的view是可以进行DML操作的。
在以下情况中,是不能对view进行DML语句的:
使用group 函数(avg,max等
group by clause group by 从句
distinct 关键字
rownum,rowid
with check option 在DML的时候,进行check,对违约的语句报错:
ORA-01402: view WITH CHECK OPTION where-clause violation
在oracle 8g以后,创建的view是可以进行DML操作的。
在以下情况中,是不能对view进行DML语句的:
使用group 函数(avg,max等
group by clause group by 从句
distinct 关键字
rownum,rowid
with check option 在DML的时候,进行check,对违约的语句报错:
ORA-01402: view WITH CHECK OPTION where-clause violation