Transaction Control Language (TCL) | GATE Notes (2024)

Transaction Control Language (TCL) instructions are used to handle database transactions. These are used to keep track of the modifications that DML statements make. It also allows you to organise statements into logical transactions. TCL commands help a user manage all the transactions taking place in a database.

In this article, we will dive deeper into the Transaction Control Language (TCL) according to the GATE Syllabus for (Computer Science Engineering) CSE. Keep reading ahead to learn more.

Table of Contents

  • What is Transaction Control Language (TCL)?
    • COMMIT Command
    • ROLLBACK Command
    • SAVEPOINT Command

What is Transaction Control Language (TCL)?

In the database, Transaction Control Language (TCL) commands are used to govern transactions. This command is used to manage changes to DML statements. TCL allows you to create logical transactions by combining your statements. Read more on the commands and transactions in TCL.

Some of the TCL commands are listed below:

COMMIT Command:

This command is used to save all the transactions in the DB.

Syntax:

COMMIT;

For Example,

UPDATE Student SET DOB=’2005-03-27’ WHERE Stu_Name=’Joey’;

COMMIT;

Thus, this example would insert the DOB in the given table, which has the name = Joey and then COMMIT these changes in the DB.

ROLLBACK Command:

The “rollback” term refers to the method of undoing changes. Thus, this command could only be used in order to reverse transactions that occurred since the last ROLLBACK or COMMIT command. All the modifications must be cancelled in case any SQL grouped statements produce a certain error.

Syntax:

ROLLBACK;

For Example:

UPDATE Student SET DOB=’2005-03-27’ WHERE Stu_Name=’Joe’;

ROLLBACK;

The example given above would insert the DOB in a table that has name = Joey and then ROLLBACK these changes in the DB. Thus, this type of operation would not create an impact on the table.

SAVEPOINT Command:

It is used to roll back a certain transaction to a certain point rather than the entire transaction.

Syntax:

SAVEPOINT Name_of_Savepoint;

This command is used exclusively among all transactions in order to create SAVEPOINT.

The ROLLBACK command is used to undo a set of given transactions.

Here is the syntax for the rollback to savepoint command in a code:

ROLLBACK TO Name_of_Savepoint;

Example:

SAVEPOINT S1; // created savepoint

DELETE FROM Student WHERE Stu_Name = ‘Joey’; //deleted

SAVEPOINT S2; // created savepoint

Keep learning and stay tuned to get the latest updates onGATE Examalong withGATE Eligibility Criteria,GATE 2023,GATE Admit Card,GATE Syllabus,GATE Previous Year Question Paper, and more.

Also Explore,

Comments

Leave a Comment

Transaction Control Language (TCL) | GATE Notes (2024)
Top Articles
The Significance of Caves in Post-Flood History of Mankind
Best PSUs For Crypto Mining: Reliable Power Supplies for Ethereum
Fiskars X27 Kloofbijl - 92 cm | bol
Jail Inquiry | Polk County Sheriff's Office
Best Team In 2K23 Myteam
Manhattan Prep Lsat Forum
Algebra Calculator Mathway
What Are the Best Cal State Schools? | BestColleges
T Mobile Rival Crossword Clue
The Realcaca Girl Leaked
Sprague Brook Park Camping Reservations
Tyrunt
Music Archives | Hotel Grand Bach - Hotel GrandBach
biBERK Business Insurance Provides Essential Insights on Liquor Store Risk Management and Insurance Considerations
Items/Tm/Hm cheats for Pokemon FireRed on GBA
Indiana Immediate Care.webpay.md
Jack Daniels Pop Tarts
Classroom 6x: A Game Changer In The Educational Landscape
ocala cars & trucks - by owner - craigslist
Conan Exiles Thrall Master Build: Best Attributes, Armor, Skills, More
Mzinchaleft
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Glenda Mitchell Law Firm: Law Firm Profile
Scout Shop Massapequa
Sea To Dallas Google Flights
Anotherdeadfairy
F45 Training O'fallon Il Photos
Sofia the baddie dog
Page 2383 – Christianity Today
Wood Chipper Rental Menards
Radical Red Ability Pill
Hwy 57 Nursery Michie Tn
Rek Funerals
Little Einsteins Transcript
Greyson Alexander Thorn
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Mosley Lane Candles
Account Now Login In
Bozjan Platinum Coins
Whas Golf Card
Supermarkt Amsterdam - Openingstijden, Folder met alle Aanbiedingen
How to Draw a Sailboat: 7 Steps (with Pictures) - wikiHow
Keir Starmer looks to Italy on how to stop migrant boats
Clausen's Car Wash
US-amerikanisches Fernsehen 2023 in Deutschland schauen
Is Ameriprise A Pyramid Scheme
Ghareeb Nawaz Texas Menu
Yale College Confidential 2027
Tacos Diego Hugoton Ks
Where and How to Watch Sound of Freedom | Angel Studios
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5783

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.