1. As with any other use of transactions - to ensure a collection of commands within the trigger are executed in a repeatable way in the event of failure.
2. To 'undo' the process that caused the trigger to fire. For example, the trigger might be doing some additional integrity checks and issuing a rollback to undo the initiating update/delete.
---------
AnswerCome to think of it, I have never seen a commit on triggers. Triggers as you know are a last line defense based on an action that was carried out by an insert,update or delete. Hence, since the trigger exists on the server, and is only fired if one of the above conditions are executed then it seems pointless to use a commit in the trigger. Also commit goes along nicely with transactions where you begin the transaction and if all is well then you issue a commit, else if the transaction fails, then you issue a rollback.When a rollback statement is executed inside a trigger, it will cancel the entire transaction that the trigger is a part of, undoing any changes made by the trigger as well as any changes made by previous statements in the transaction. This can be helpful in cases where an error occurs in the trigger and you want to revert the transaction to its initial state.
A SQL UPDATE statement allows the user to update existing records in a database table. For example, it could be used to update a customer's address, or a the price of a product.
Yes you can. You can create queries that do calculations. You can write code for programs to do calculations in a database. Doing calculations is a significant element of what you do with a database, so yes you can do them within a database.
A database is a collection of data. Data represents items that are stored within the database.
A table is contained within the database and consists of columns and rows. A table is meant to store data and, in relational databases, are related to other tables within the same database.
relationship
Wether in docuement form or a database form within a database data input form a form within another form is called a sub form
Datafile is a group of files in each table space in an Oracle database. Database files are all files that are found within the database.
Filters-filters look for specific information within a database regarding a subject.
An internal database is a Computerized collections of information obtained from data sources within the company.
An internal database is a Computerized collections of information obtained from data sources within the company.
No. A table is the primary object used within a database to store data. A typical database will consist of many tables.