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

How do you declare a constant?

523


What does a pl/sql package consist of?

514


Can we use pl sql in sql server?

538


Does truncate release storage space?

554


What is the best partition size for windows 10?

478






What has stored procedures in sql and how we can use it?

561


How to connect a sql*plus session to an oracle server?

619


What is nosql db?

537


Why use truncate instead of delete?

542


Can sql developer connect to db2?

582


How to use boolean type in select statement?

580


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

528


How can we link a sql database to an existing android app?

546


Which join is like inner join?

558


How do you run a query?

586