which will fire first ? Trigger or Constraint
Answer Posted / gourvendra singh
This is for the people who says 'No' to the answer no 7.
As i still believe that it totally depends upon the timings of the trigger.
Consider the below example:
Example1: If i created a trigger as Before insert/update/delete on a table. Whenever user will perform any DML operation on the said table, the trigger will always executes first then it will check the constraint.
Example2: If I created a trigger as After Insert/Update/Delete on a table. Whenever user will perform a DML operation on the said table, the constraint will execute first then the trigger will be executed.
Please mail me if I am wrong on the below mail id:
raviindian2114@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you fetch common records from two tables?
what is the difference between join and union? : Sql dba
What is oracle pl sql developer?
How to know the last executed procedure?
how can we find the number of rows in a table using mysql? : Sql dba
what are different types of collation sensitivity? : Sql dba
Is big data nosql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What is the maximum number of columns in sql table?
What are sql constraints?
Does pl sql work in mysql?
What are different clauses used in sql?
How do I view tables in sql developer?
What is the difference between alter trigger and drop trigger statements?
What are sql triggers used for?