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


Please Help Members By Posting Answers For Below Questions

How do I view a procedure in sql?

549


How to select random rows from a table?

524


what is self join and what is the requirement of self join? : Sql dba

685


Show how functions and procedures are called in a pl/sql block.

588


what is dbms? : Sql dba

544






What is composite data type in pl sql?

559


Does view contain data?

618


What is the least restrictive isolation level? : Transact sql

565


What is procedure and function in sql?

534


Differentiate between sga and pga.

674


Where is all the data on the internet stored?

556


what are all different types of collation sensitivity? : Sql dba

525


What are the properties of a transaction?

565


What is the difference between nested table and varray?

523


What is sql constant?

509