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

How do you run a query?

954


Why are aggregate functions called so?

896


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1092


What are the indexing methods?

1002


what is a scheduled jobs or what is a scheduled tasks? : Sql dba

905


What is sql in oracle?

1002


What is snowflake sql?

1011


How is a PL/SQL code compiled?

1171


what are myisam tables? : Sql dba

951


What is the usage of the distinct keyword?

1166


Is pl sql still used?

925


What is delete command in sql?

1051


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

906


Is sql database free?

924


Can a procedure in a package be overloaded?

982