which will fire first ? Trigger or Constraint
Answer Posted / anilbabu makkena
It is on the based situation.
1st situation CONSTRAINT and BEFORE STATEMENT Level TRIGGER
and BEFORE ROW Level TRIGGER Created.
1.BEFORE STATEMENT Level TRIGGER Fires.
2.BEFORE ROW Level TRIGGER Fires.
3.CONSTRAINT Fires.
2nd situation CONSTRAINT and AFTER STATEMENT Level TRIGGER
and AFTER ROW Level TRIGGER Created.
1.CONSTRAINT fires.
2.AFTER ROW Level TRIGGER Fires.
3.AFTER STATEMENT Level TRIGGER Fires.
3rd situation CONSTRAINT and BEFORE STATEMENT Level TRIGGER
and BEFORE ROW Level TRIGGER and AFTER ROW Level TRIGGER and
AFTER STATEMENT Level TRIGGER Created.
1.BEFORE STATEMENT Level TRIGGER Fires.
2.BEFORE ROW Level TRIGGER Fires.
3.CONSTRAINT Fire.
4.AFTER ROW Level TRIGGER Fires.
5.AFTER STATEMENT Level TRIGGER Fires.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a dynamic query?
Does inner join return duplicate rows?
What is a rank in sql?
What is rename in sql?
Why select is used in sql?
What is faster join or subquery?
How do I partition a table in sql?
What is trigger and how to use it in sql?
Does sql backup shrink transaction log?
What will you get by the cursor attribute sql%rowcount?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
What is the difference between function and procedure in pl/sql?
what are the different tables present in mysql? : Sql dba
What are the advantages of stored procedure?
Which nosql database is best?