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 are the differences between binary and varbinary? : Sql dba
Can sql function call stored procedure?
How do I kill a query in postgresql?
Which are sql * plus commands?
What is the difference between clustered and non-clustered indexes?
What is the difference between sql, mysql and sql server?
Are stored procedures faster than dynamic sql?
Does sql between include endpoints?
what is column? : Sql dba
What is sap sql anywhere?
Can we use view in stored procedure?
What is keys and its types?
What is pl sql collection?
What is a sql*loader control file?
Explain the order of sql statement execution?