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

List various types of log-based recovery in DBMS.

573


Explain various types of locks in a transaction? Which is better and why?

607


Explain inner and outer joins with examples.

717


Is hive a database?

560


A lowest level of security by most RDBMS is

671






What is odm in database?

588


What is ole db in ssis?

616


Can you create a database in word?

530


What is difference between data and database?

559


How many types of locks are present in a database?

611


What are the types of indexes that are present inside a database?

643


i have windows-xp processor with P4 system. whenever I tried to download foxpro for windows 2.6 on windows XP, my operating system failed to install foxpro for windows 2.6.please. how could i download , install & run foxpro for windows 2.6 easily on windows XP ?

1642


5. Explain about relational algebra.

1735


Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.

594


What are the most common databases?

544