What are the differences between Database Trigger and
Integrity constraints ?

Answer Posted / kalyana chakravarthy

Intigrity constraints are Proactive-- Like they take the
cols into consideration before sitting on it like if U levy
a PK on a col having duplicate or null values it will not
obey to sit on that col

Triggers are reactive-- Triggres react only when a DML
occurs. When it comes and sit on a table then its starts
working and never considers what happened before it arrival

Both are used to perform business rules

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is bdb (berkeleydb)? : Sql dba

749


What does count (*) do in sql?

733


Do stored procedures prevent sql injection?

720


What is use of trigger?

674


What is a heap in sql?

711






what is the difference between myisam static and myisam dynamic? : Sql dba

760


How you improve the performance of sql*loader? : aql loader

742


Explain the working of primary key?

830


Why do we need unique key in a table?

668


How do you write a complex sql query?

768


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

756


How to read xml file in oracle pl sql?

686


State few characteristics of pl/sql?

719


How do I create a sql database?

708


What is range partitioning?

686