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
SQL> update system.tt set a=2; update system.tt set a=2 * ERROR at line 1: ORA-01733: virtual column not allowed here
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
總結:
無法對包含表達式的view 進行dml 操作