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 difference between rank () row_number () and dense_rank () in sql?
How does sql*loader handles newline characters in a record? : aql loader
How many types of keys are there in sql?
How do I view a procedure in sql?
How do I audit the sql sent to the server?
What does pragma mean?
What is sql performance tuning?
what is sql? : Sql dba
Which constraints we can use while creating database in sql?
what is error ora-03113: end-of-file on communication channel?
What is trigger and stored procedure in sql?
What is a dirty read sql?
Is grant a ddl statement?
how to get help information from the server? : Sql dba
What is AUTH_ID and AUTH_USER in pl/sql ?