which will fire first ? Trigger or Constraint
Answer Posted / radha sri seshu.kolla
I THINK TRIGGER FIRES FIRST, BCZ WHEN U WRITE A TRIGGER
LIKE 'BEFORE INSERT ON EMP' EVENT. THIS TRIGGER WILL FIRE
IMMEDEATELY BEFORE THE DATA IS ABOUT TO INSERT IN THE
TABLE.WHERE AS IN THE CASE OF CONSTRAINTS, WHEN YOU INSERT
THE DATA,THE DATA GOES FOR CONSTRAINT VALIDATION THEN THE
DATA WILL BE REJECTED(IF THE DATA VIOLATES THE CONSTRAINT
RULE). I AM NOT 100% SURE. THIS IS JUST MY IMAGINATION.
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
what is subquery? : Sql dba
How do you take the union of two tables in sql?
What is a table in a database?
what is transaction? : Sql dba
Is sqlite free?
Enlist some predefined exceptions?
What is union and union all keyword in sql?
What is the left table in sql?
What is a recursive stored procedure?
Which data dictionary views have the information on the triggers that are available in the database?
List out the acid properties and explain?
Is nosql faster than sql?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
What is the purpose of normalization?