ORA-01733: virtual column not allowed here, ora-01733allowed

Source: Internet
Author: User

ORA-01733: virtual column not allowed here, ora-01733allowed
Base table: hr. tt scott. tt
View 1: Based on hr. tt union all scott. tt --- scott. ttt
View 2: Create system. tt Based on View 1-scott. ttt


Problem reproduction:
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

Update view 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



Update view 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.

Summary:

Unable to perform dml operations on views containing expressions


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.