Oracle trigger-Mutation Table trigger cannot access this table

Source: Internet
Author: User


1CREATEORREPLACETRIGGER trgregisterpregroup2 UPDATE 3 on tblregisterusers 4 for Each ROW 5 ... 6 END Trgregisterpregroup;

A trigger is created on table Tblregisterusers, which is a row-level trigger, which can be: old and; New data

However, you can no longer select operations on the mutation table, or you will report an exception

Reason:

When you create a row-level trigger on a table, the following two restrictions apply:

1. Can not read or modify any trigger statement of the variation table;
2. You cannot read or modify a column of the primary key,unique or FOREIGN key keyword for a constraint table of a contact publication, but you can modify the other columns

Workaround:

But it's going to be a problem.

Solution, add commit at the end;

Oracle trigger-Mutation Table trigger cannot access this table

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.