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 are sequences
What are the qualities of 2nf?
Explain sql data types?
Explain how to use transactions efficiently : transact sql
What type of database is cloud sql?
Is coalesce faster than isnull?
What does data normalization mean?
what is a foreign key ? : Sql dba
what are myisam tables? : Sql dba
What is difference between sql and excel?
What are different types of sql commands?
Does db2 use sql?
Why do we need unique key in a table?
How can you fetch common records from two tables?
Is it possible for a table to have more than one foreign key?