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
List different type of expressions with the example.
Whis is not false in primary key?
What is range partitioning?
What does := mean in pl sql?
how to get a list of columns in an existing table? : Sql dba
What does 0 mean in sql?
How do I view stored procedures?
Which is faster joins or subqueries?
How to read/write files from pl/sql?
What is bind reference and how can it be created?
What has stored procedures in sql?
What can sql server reporting services do?
Explain the difference in execution of triggers and stored procedures?
Why we use stored procedure instead of query?
Is primary key is clustered index?