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
Write a sql query to get the third highest salary of an employee from employee_table?
Define concurrency control. : Transact sql
What is the difference between instead of trigger and after trigger?
Why is normalization important?
What is a sql profiler?
What are the differences between in and exists clause?
Is sqlite thread safe?
What are all the ddl commands?
What are the packages in pl sql?
Is sql between inclusive?
What is nosql db?
what is csv? : Sql dba
What is pl sql commands?
What is the purpose of design view?
What are the rules to be applied to nulls whilst doing comparisons?