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
What does count (*) mean?
Is big data nosql?
How do I count rows in sql?
Define SQL and state the differences between SQL and other conventional programming Languages?
What are all the common sql functions?
what are all the different normalizations? : Sql dba
What is mutating error?
What makes a good primary key?
What is the difference between delete, truncate and drop command?
Which query operators in sql is used for pattern matching?
What does dml mean?
What types of commands can be executed in sql*plus?
Mention what does the hierarchical profiler does?
How to call a javascript function from pl sql?
What is trigger and how to use it in sql?