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 is the clause we need to add in function body to return variable?
how can we find the number of rows in a table using mysql? : Sql dba
What is data definition language?
What is number function in sql?
Why left join is used in sql?
Explain what is table in a database?
What does truncate mean in sql?
What is the trigger in sql?
What is rename command in sql?
Why is sql important?
What are the advantages of pl sql?
what are the different type of normalization? : Sql dba
What is the command used to fetch first 5 characters of the string?
what are the advantages and disadvantages of views in a database? : Sql dba
how to enter characters as hex numbers? : Sql dba