What is the Diff b/w Constraints and Trigeer

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of joins in sql?

737


What is a table partition?

789


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

843


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2760


What are the sql versions?

672






what are properties of a transaction? : Sql dba

760


What is the purpose of using pl/sql?

828


What is the difference between nvl function, ifnull function, and isnull function?

797


What are sql triggers used for?

722


How to return multiple rows from the stored procedure?

714


Can a trigger call a stored procedure?

747


How do you run a query?

766


How do sql databases work?

710


Is natural join and inner join same?

654


Mention what does plv msg allows you to do?

855