What are the differences between Database Trigger and
Integrity constraints ?

Answer Posted / ganesh

Trigger: A set of pl/sql statments that are stored
permenantly in the database it activates when ever the DML
operations performed on the table.

constraints: Set of predefind rules are applied on table
column while creating the table or after creating the
table. and automatically performed when DML statemets are
performed by user.

the main differece between the two is
trigger will not effect the existing rows(it will effects
only new rows after creating a trigger on a table),
where as in the constraints it will effect the existing
rows also.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are indexes in oracle?

822


Design an ETL process( batch job/script)from source to starting that u will not be dependent on the source in the near future?please elobarate details on what are things to consider.if you'd like to do a diagram that will be great.please answer it

2013


You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?

949


Explain phantom deadlock?

950


What is a trace file?

809






What does currency type mean in database?

878


What is the candidate key used for?

789


what is the role of auditor in auditing data oriented applications?

2110


How to do performance tunning a database in DB2 V8.2 UDB in linux

2010


Explain artificial key?

890


What is odm in database?

730


After normalization, what are the conditions which have to keep in mind to de-normalize it?

785


Is hive a database?

699


Can you create a database in word?

736


can i use the commands "modify" and Change in DB2 to alter my column datatype and its name in a table?

1849