What is the Diff b/w Constraints and Trigeer

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlcommand?

548


What is on delete restrict?

534


Why do we need cursor in pl sql?

643


Which is faster count (*) or count 1?

534


Does sql support programming?

547






What are the main features of cursor?

624


Are there any features that are decommissioned in 11g that are not present in 11g?

1587


What if we write return in procedure?

785


What is the difference between the implicit and explicit cursors?

521


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

593


Why truncate is faster than delete?

556


Mention what plvcmt and plvrb does in pl/sql?

632


What is sql engine in oracle?

518


What is cartesian join in sql?

557


What is a native sql query?

491