Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone explain the commit in SQL?

1 Answer

0 votes
by (119k points)

Commit is a transactional control command that saves all the changes to the database that are made since the last COMMIT or ROLLBACK command. In simple words, COMMIT is used to save all the changes made by the transactions to the database.

Here is the syntax to use COMMIT command:

Commit;

Suppose you execute a query without commit command the changes won’t be published after the session is closed. If we use a query with COMMIT, the changes post the query will be saved successively.

You can check out this SQL Tutorial blog to learn more about transactional control commands.

Related questions

0 votes
1 answer
asked Oct 21, 2020 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
asked May 4, 2023 in SQL by neelimakv (32.5k points)
0 votes
1 answer
asked Apr 2, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
2 answers
asked Mar 23, 2021 in SQL by dev_sk2311 (45k points)

Browse Categories

...