what is the difference between trigger and constraint?

Answers were Sorted based on User's Feedback



what is the difference between trigger and constraint?..

Answer / kumar jabu

Constraints implements specific conduct or rules on table column like it determines whether field data should be unique,not null ..
But triiger implements rules on systems or application event.
whenever dml occurs that implemented rules been fired.

Is This Answer Correct ?    3 Yes 0 No

what is the difference between trigger and constraint?..

Answer / naga sindhuri

Triggers not apply for existing rows but constraints can
apply for existing rows.

Is This Answer Correct ?    2 Yes 0 No

what is the difference between trigger and constraint?..

Answer / milind chopde

1) Constraints can be used for validation but trigger can be used for complex validation and auditing purpose.
2) Trigger is database object but constraint not.
3) Trigger can be fired on DDL commands but constraints are created or altered using DDL commands.
4) Trigger can be fired on particular event like before/after DML but constraint always check before any data insert or update to table.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Is pl sql a programming language?

0 Answers  


What are stored procedures used for?

0 Answers  


Give the structure of the function ?

2 Answers  


Types of optimization?

6 Answers   Microsoft,


how to create a new table in mysql? : Sql dba

0 Answers  






How is sql used in oracle?

0 Answers  


Can we rollback after truncate?

0 Answers  


Explain the structure of pl/sql in brief.

0 Answers  


What are sql queries used for?

0 Answers  


Is vs as in pl sql?

0 Answers  


What does := mean in pl sql?

0 Answers  


how many sql dml commands are supported by 'mysql'? : Sql dba

0 Answers  


Categories