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
What is the primary key?
What is identity column in sql server?
how to run 'mysql' commands from a batch file? : Sql dba
How to fix oracle error ora-00942: table or view does not exist
What is the main reason behind using an index?
What does subquery mean in sql?
Is sql better than access?
What are the events on which a database trigger can be based?
what's the difference between a primary key and a unique key? : Sql dba
Is oracel sql developer written in java?
What is database white box testing and black box testing?
What is a variable in sql?
How does stored procedure reduce network traffic?
Can sql developer connect to db2?
What does over partition by mean in sql?