What are the differences between Database Trigger and
Integrity constraints ?

Answer Posted / guest

An integrity constraint defines a business rule for a table
column which automatically takes care by Oracle internally.
Intefrity Constraints are NOT NULL,UNIQUE,CHECK ,PRIMARY
KEY,FOREIGN KEY.


A database trigger is a procedure written in PL/SQL and
Will run implicitly when data is modified or when some user
or system actions occur.Triggers are database objects which
gets stored in database and get fires when INSERT or UPDATE
statement attempts to violate the integrity rule, Oracle
must roll back the statement and return an error if trigger
exists.Database triggers are BEFOR/AFTER/{BEFORE|AFTER}
{row|statement etc.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a trigger call a stored procedure?

537


Show code of a cursor for loop.

584


What are the most important characteristics of pl/sql?

578


What is count * in sql?

556


Which one is better subquery or joins?

557






Mention what is the use of function "module procedure" in pl/sql?

569


What pl/sql package consists of?

638


Is progress software supports to ( pl/sql )?

530


How do I partition a table in sql?

542


Why we use pl sql?

531


Mention what are the benefits of pl/sql packages?

538


What is the difference between syntax error and runtime error?

614


How can you create an empty table from an existing table?

596


What is the difference between partitioning and sharding?

530


How do you sort in sql?

605