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

List different type of expressions with the example.

551


Whis is not false in primary key?

977


What is range partitioning?

522


What does := mean in pl sql?

555


how to get a list of columns in an existing table? : Sql dba

544






What does 0 mean in sql?

530


How do I view stored procedures?

543


Which is faster joins or subqueries?

554


How to read/write files from pl/sql?

582


What is bind reference and how can it be created?

580


What has stored procedures in sql?

601


What can sql server reporting services do?

583


Explain the difference in execution of triggers and stored procedures?

570


Why we use stored procedure instead of query?

538


Is primary key is clustered index?

529