基表: hr.tt  scott.tt

 视图1: 基于 hr.tt  union all  scott.tt ---》 scott.ttt

 视图2: 基于 视图1-》scott.ttt 创建 system.tt





问题再现:

SQL> create table hr.tt (a number);

Table created.

SQL>  create table lixora.tt (a number);

Table created.



SQL> create view  scott.tt as select * from  hr.tt union all select * from lixora.tt;

View created.





SQL> create view system.tt as select * from scott.tt;

View created.



SQL> select * from system.tt

         A

----------

         1



更新视图2:

SQL> update  system.tt set a=2;

update  system.tt set a=2

                      *

ERROR at line 1:

ORA-01733: virtual column not allowed here







更新视图1:

SQL> update  scott.tt set A=2;

update  scott.tt set A=2

              *

ERROR at line 1:

ORA-01732: data manipulation operation not legal on this view





SQL> !oerr ora 1732

ORA-01733: virtual column not allowed here 

Cause: An attempt was made to use an INSERT, UPDATE, or DELETE statement on an expression in a view. 

Action: INSERT, UPDATE, or DELETE data in the base tables, instead of the view.

总结:

无法对包括表达式的view 进行dml 操作

最新文章

  1. SQL Server 获取最后一天(指定时间的月最后一天日期)
  2. TaggingJS – 可以灵活定制的 jQuery 标签系统插件
  3. 升级cocoapods到1.2 beta版本的方法
  4. Android中实现跨app之间数据的暴露与接收
  5. leetcode修炼之路——13. Roman to Integer
  6. TI芯片android环境搭建和编译
  7. DirectFB 之 字体显示
  8. Quartz2.2.x官方教程
  9. 非常详细的 Docker 学习笔记-转载
  10. Linux 使用 cp 命令强制覆盖功能
  11. 跨浏览器开发:CSS
  12. 洛谷P4778 Counting swaps 数论
  13. (玩起来)DAX/PowerBI系列 - 参数表(Parameter Table) - 多时间段数值对比
  14. IOS 数据存储之 FMDB 详解
  15. git reset --hard 恢复
  16. memoization
  17. c#中的 数组
  18. haproxy文章
  19. 为什么我们不应该使用微信或者 QQ 作为团队协作的 IM 工具?
  20. 【转】ArrayBlockingQueue浅析

热门文章

  1. webRequest
  2. iOS CoreImage图片处理动态渲染(滤镜)
  3. godoc工具使用
  4. MYSQL Training: MySQL I
  5. Python—JSON数据解析
  6. tomcat开启https服务
  7. eclipse搭建android开发环境
  8. 将查询到的数据导出到Excel终结版
  9. 常规RPC通讯过程【转载】
  10. Mac 如何寻找Mac自带的IDLE