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

Can a foreign key have a different name?

503


how to drop an existing index in mysql? : Sql dba

527


Write an sql query to select all records from the table?

548


How delete all data from all tables in sql?

530


What is procedure and function?

505






Is sql the best database?

489


What is forward declaration in pl sql?

580


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

515


what is data control language? : Sql dba

574


What are the packages in pl sql?

562


how can you see all indexes defined for a table? : Sql dba

528


What is a temporal table?

480


How does postgresql compare to oracle/db2/ms sql server/informix?

547


What is a file delimiter?

547


What are the two parts of design view?

569