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
How do I restart sql?
What is a full join?
What is the order of sql select?
How do I partition a table in sql?
What is assignment operator in pl sql?
What are the triggers associated with image items?
Explain the order of sql statement execution?
What are the 3 modes of parameter?
what is the difference between a web-garden and a web-farm? : Sql dba
What is the process of debugging?
write an sql query to find names of employee start with 'a'? : Sql dba
How do I order columns in sql?
how to load data files into tables with 'mysqlimport'? : Sql dba
Why truncate is used in sql?
what is a tablespace? : Sql dba