Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the differences between Database Trigger and
Integrity constraints ?

Answers were Sorted based on User's Feedback



What are the differences between Database Trigger and Integrity constraints ?..

Answer / 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

What are the differences between Database Trigger and Integrity constraints ?..

Answer / rao

main diff is when we use the trigger voilation rules of
trigger body will not affect existing data.but in case of
constrinat will affect the exsting data also.

Is This Answer Correct ?    7 Yes 1 No

What are the differences between Database Trigger and Integrity constraints ?..

Answer / kalyana chakravarthy

Intigrity constraints are Proactive-- Like they take the
cols into consideration before sitting on it like if U levy
a PK on a col having duplicate or null values it will not
obey to sit on that col

Triggers are reactive-- Triggres react only when a DML
occurs. When it comes and sit on a table then its starts
working and never considers what happened before it arrival

Both are used to perform business rules

Is This Answer Correct ?    4 Yes 0 No

What are the differences between Database Trigger and Integrity constraints ?..

Answer / santu sarkar

1> A database trigger is written in PL/SQL. Integrity Constraints are CHECK Constraints, Not NULL, Unique key, primary key and foreign key.
2> Trigger will not affect the existing data. Constraint will affect the existing data.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

Why use subqueries instead of joins?

0 Answers  


what is the difference between binary_integer and pls_integer

2 Answers   TCS,


write a query to delete similar records in different tables with same structure

4 Answers  


What is recursive join in sql?

0 Answers  


What is the Difference between Procedure and Function.Can we call a Function in a DML?

2 Answers   TCS,


What is crud diagram?

0 Answers  


What is the difference between alter trigger and drop trigger statements?

0 Answers  


Can sql developer connect to db2?

0 Answers  


Explain how exception handling is done in advance pl/sql?

0 Answers  


I have one Excel file with 1,50,000 Records. Now I need to load that whole file into Oracle Database with same columns in Excel sheet . I need PLSQL Procedure or used by SQL PLUS

7 Answers   Polaris,


What is pivot table in sql?

0 Answers  


Why is stored procedure faster than query?

0 Answers  


Categories