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 difference between trigger and constraint?

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


Please Help Members By Posting Answers For Below Questions

Does sql profiler affect performance?

994


What's the procedure?

929


What is loop in pl sql?

1039


how can we know the number of days between two given dates using mysql? : Sql dba

1048


What is sql and how does it work?

1175


what is the difference between $message and $$message? : Sql dba

998


what are the differences between char and varchar? : Sql dba

1071


How to start oracle sql developer?

1038


What is procedure explain with program?

1020


What are transaction and its controls?

1040


What is %s in sql?

1026


Is sql the best database?

976


how do you know the version of your mysql server? : Sql dba

1004


What is sqlexception in java?

993


What is query syntax?

972