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
What is the difference between a database and a relational database?
How can you tell the difference between an index and a view?
what are the join types in tsql? : Transact sql
Is keyword pl sql?
Can we rollback after truncate?
What is the difference between the sql*loader and import utilities? : aql loader
What is sql*loader?
What is sql mysql pl sql oracle?
what are date and time intervals? : Sql dba
What is int identity in sql?
Why do we use subquery?
How delete all data from all tables in sql?
Differentiate between syntax and runtime errors.
Can we insert in view in sql?
Explain unique key in sql.