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 is the best database?

538


Write a query to get maximum and second maximum in oracle?

611


What is the function of cluster index?

622


What is a database example?

547


What is redis good for?

564






how to configure oracle 10g in java1.5 and tell me know how to set class path in system?

1598


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

611


Explain buffer manager?

561


Explain transaction manager?

628


How to do Data size testing? Who does this testing (Developer or tester)?

2132


What is aws documentdb?

651


How many indexes can be created on a table?

625


Can we use redis as database?

555


how can we view column head in first page but not in remaining pages?

1613


1. How to test Database? Please, give me all details for "SQL,Msaccess, Mysql Database? 2.For which functionalities database used? 3.How to convert Guest to Admin by Mysql database?

1740