InterviewSolution
Saved Bookmarks
| 1. |
Explain the following statement with the help of example :"In a transaction either all the SQL statements be committed or all rolled back." |
|
Answer» It means that when the set of SQL statements are executed, then there are two cases: Case-1 : All statements executed successfully. Case-2: Some instructions got successfully executed, some gives a sort of error. In case-1, the required action with the database will take place as per the executions of all of the instructions one by one. In case-2, even if some of the instructions are executed, but then too the action of them will be rolled back and hence will have no effect on the database. |
|