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 function that is used to transfer a pl/sql table log to a database table?
What is data control language?
differentiate between float and double. : Sql dba
Can you join a table to itself?
What is difference between pls_integer and integer?
What are the different sql languages?
Is pl sql and postgresql same?
What does truncate mean in sql?
How to avoid using cursors?
How to create a menu in sqlplus or pl/sql?
Which join is default?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
Explain the purpose of %type and %rowtype data types?
Explain cursor types?
Can 2 queries be executed simultaneously in a distributed database system?