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

Differentiate between sga and pga.

674


Explain autonomous transaction.

639


How can I change database name in sql?

532


What are the main features of cursor?

631


What is the difference between delete, truncate and drop command?

552






What does 0 mean in sql?

530


what are the properties and different types of sub-queries? : Sql dba

506


how many tables will create when we create table, what are they? : Sql dba

544


Does mysql support pl sql?

624


What is a left join?

513


What is replication id?

523


What pl/sql package consists of?

638


What is mdf ldf and ndf?

563


What are sql*plus environment variables?

559


What is the use of & in pl sql?

540