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 to set up sql*plus output format in oracle?
how to include character strings in sql statements? : Sql dba
What is dense_rank?
How do I partition a table in sql?
How do I find sql profiler?
How can a pl sql block be executed?
What is nosql example?
What is graph sql?
How do you update sql?
How to connect a sql*plus session to an oracle server?
What is use of term?
Explain how to use transactions efficiently : transact sql
What is sqlerrd?
What are the two virtual tables available at the time of database trigger execution?
Explain what is rdbms?