Which command can we use to save all transactions?

A

Save point

B

Commit

C

Save

D

Rollback

উত্তরের বিবরণ

img

Answer: ) Commit

 Explanation:
In database management systems (DBMS):

Commit: Permanently saves all changes/transactions made during the current session.
After a commit, changes cannot be rolled back.
Savepoint: Creates a marker within a transaction to which you can rollback partially.
Rollback: Reverts changes to the last commit or to a savepoint.
SaveNot a standard SQL command for transaction control.
 
 Example:
 
BEGIN TRANSACTION;
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;
COMMIT; -- saves all above changes permanently

Unfavorite

0

Updated: 2 days ago

Related MCQ

Contrapositive of “If it rains, the home team wins”:

Created: 2 days ago

A

If the home team wins, then it rains

B

If the home team does not win, it does not rain

C

If it does not rain then the home team does not win

D

The home team wins whenever rains

© LXMCQ, Inc. - All Rights Reserved

Developed by WiztecBD