Question
Which of the following commands is part of the
Transaction Control Language (TCL) in SQL?Solution
Transaction Control Language (TCL) commands in SQL are used to manage transactions in a database, ensuring that operations are executed reliably. COMMIT is a TCL command that finalizes a transaction, making all its changes permanent in the database. For example, in a banking application, if a transaction involves debiting one account and crediting another, the COMMIT command ensures these changes are saved only when both operations succeed. This guarantees data integrity. Without TCL commands like COMMIT, rollback mechanisms would not work effectively, and transactional integrity could be compromised. Why Other Options Are Incorrect :
- SELECT : This is a Data Query Language (DQL) command used for retrieving data, not managing transactions.
- UPDATE : This is a Data Manipulation Language (DML) command used to modify data, not a TCL command.
- ALTER : This is a Data Definition Language (DDL) command used for modifying table structures, unrelated to transactions.
- DROP : Another DDL command, used for deleting database objects, not for controlling transactions.
Which Delhi Sultan died due to a fall from a horse while playing polo in Lahore?
Inside a GIF image, a small program often embedded is called _______. Â
In what year did Mahmud of Ghazni invade the Somnath temple in Gujarat?
Recently which of the following mobile-first credit card firm, became the 104th unicorn in India?
Who was awarded the COSPAR Harrie Massey Award 2024 for contributions to space science?
Dr. Sandhaya Puricha received the Lacchu Maharaj Award for her contributions to which dance form?
In which year did Mother Teresa receive the Nobel Peace Prize?
Which film, produced by Aamir Khan, is India's official entry for the Oscars 2025 in the Best Foreign Film category?
Mahatma Gandhi peace prize was instituted in?
Who were the recipients of the “Rajiv Gandhi Khel Ratna Award” in 2018?