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
how can we repair a mysql table? : Sql dba
how to calculate expressions with sql statements? : Sql dba
How do you respond to dementia behavior?
What are the various levels of constraints?
Will truncate release space?
What is indexes?
What is a common use of group by in sql?
Why should I use postgresql?
How to look at the current sql*plus system settings?
What is the use of stored procedures?
What do you understand by pl/sql packages?
What is a field in a database?
What is indexing in sql and its types?
What is rownum?
difference between anonymous blocks and sub-programs.