What are the differences between Database Trigger and
Integrity constraints ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the operators in sql?

530


Does sql profiler affect performance?

559


Why do we use partitions in sql?

547


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

536


what does the t-sql command ident_current does? : Transact sql

546






Can we create table in function?

572


What is the difference between function and procedure in pl/sql?

542


how does a local variable is defined using t-sql? : Transact sql

546


how can we destroy the session, how can we unset the variable of a session? : Sql dba

554


Is left join faster than join?

549


How does index help in query performance?

565


How many developers work on postgresql?

568


How many subqueries can be nested in a statement?

505


What is the purpose of the primary key?

564


Does sql full backup truncate logs?

533