which will fire first ? Trigger or Constraint

Answer Posted / suthakar

It is depend upon the condition, as if trigger is written
on after insert and update then constraint will fire first
and if you make a trigger as on before insert or update
then the trigger will fire first.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I count rows in sql?

557


What is Difference Between Unique and Primary Key Constraints?

604


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

1638


Can we join tables without foreign key?

520


How do you optimize a stored procedure in sql?

499






what is bdb (berkeleydb)? : Sql dba

566


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

522


What is the usage of the distinct keyword?

682


what are the advantages and disadvantages of views in a database? : Sql dba

529


What are triggers and its types?

550


What is the file extension for sql database?

515


Which is faster union or join?

489


What is the use of partition by in sql?

514


What are % type and % rowtype?

570


What is a record in a database?

559