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 is the Diff b/w Constraints and Trigeer

Answers were Sorted based on User's Feedback



What is the Diff b/w Constraints and Trigeer..

Answer / saraswathi muthuraman

TO apply business rule we are using Constraints and trigger.

If we have any computation and validation over the
calculated value we have choose "trigger".


Direct validation like the column should not contain null
values then you can choose Constraints.

Constraints : NOT NULL,UNIQUE,PRIMARY KEY,CHECK,REFERENCE

Trigger effected only those row after which trigger applied
but constraint effected all row of table .

Is This Answer Correct ?    24 Yes 0 No

What is the Diff b/w Constraints and Trigeer..

Answer / mohanbabu

Constraints are used to limit the type of data that can go
into a table.
Constraints can be specified when a table is created or
after the table is created.

A trigger is a fragment of code that you tell Oracle to run
before or after table is modified.

Is This Answer Correct ?    13 Yes 3 No

What is the Diff b/w Constraints and Trigeer..

Answer / shekar

Triggers: It checks the condition and Performs some action
eg: it checks and fires before or after insert or update
or delete

Constriants: it checks the condition
eg: suppose NotNull constraint.It jst doesn't allow null
values.

Is This Answer Correct ?    1 Yes 0 No

What is the Diff b/w Constraints and Trigeer..

Answer / manoranan sethy

Constraints are restrict the invalid data before invoke into the database whereas trigger restrict the invalid transaction.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Types of joins?

4 Answers   Microsoft,


What is mutating error?

0 Answers  


What is not null in sql?

0 Answers  


What company owns postgresql?

0 Answers  


Show code of a cursor for loop.

0 Answers  


Easy way to convert tableau "IF - ELSEIF" statements to Netezza "CASE" statements.

1 Answers   CTS,


What is audit logout in sql profiler?

0 Answers  


Delete the emps whose salaries are lowest sals of their own dept.

5 Answers  


What are inner outer left and right joins in sql?

0 Answers  


What is schema in sql?

0 Answers  


How to assign sql query results to pl sql variables?

0 Answers  


What is sql in java?

0 Answers  


Categories