What is mutating table?

Answer Posted / koteswara reddy

If row level trigger based on a table than trigger body cannot read data from same table and also we can't perform dml operations on a same table. if anybody trying this then oracle server returns an error. this error is called mutating error and table is called mutating table
ex:-
create or replace trigger trg
after delete on emp
for each row
declare
l_count number;
begin
select count(*) into l_count from emp;
dbms_output.put_line(l_count);
end;
/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the primary use of normalization?

514


Why indexing is needed?

509


What is the benefit of foreign key?

522


Explain what is rdbms?

578


What is the order of sql select?

562






Why do you partition data?

525


What is information schema in sql?

572


What is normalization in a database?

601


What are different types of sql?

551


Why having clause is used in sql?

530


What is right join in sql?

544


What is full form of rtm?

522


How long does it take to learn pl sql?

597


What are %type and %rowtype for?

605


What are the methods of filing?

513