How To Commit the Current Transaction?
Page 1 of 1
How To Commit the Current Transaction?
If you have used some DML statements updated some data objects, and you want to have the
updates to be permanently recorded in the database, you can use the COMMIT statement. It will
make all the database changes made in the current transaction become permanent and end the
current transaction. The following tutorial exercise shows you how to use COMMIT statements:
SQL> connect HR/fyicenter
SQL> INSERT INTO fyi_links (url, id) VALUES ('fyicenter.com', 101);
SQL> INSERT INTO fyi_links (url, id) VALUES ('centerfyi.com', 110);
SQL> SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
---------- ---------------- ---------------- ---------- ---------
101 fyicenter.com 07-MAY-06
110 centerfyi.com 07-MAY-06
SQL> COMMIT;
Commit complete.
updates to be permanently recorded in the database, you can use the COMMIT statement. It will
make all the database changes made in the current transaction become permanent and end the
current transaction. The following tutorial exercise shows you how to use COMMIT statements:
SQL> connect HR/fyicenter
SQL> INSERT INTO fyi_links (url, id) VALUES ('fyicenter.com', 101);
SQL> INSERT INTO fyi_links (url, id) VALUES ('centerfyi.com', 110);
SQL> SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
---------- ---------------- ---------------- ---------- ---------
101 fyicenter.com 07-MAY-06
110 centerfyi.com 07-MAY-06
SQL> COMMIT;
Commit complete.
Similar topics
» How To End the Current Transaction?
» How To Rollback the Current Transaction?
» What Happens to the Current Transaction If a DDL Statement Is Executed?
» What Happens to the Current Transaction If the Session Is Ended?
» What Happens to the Current Transaction If the Session Is Killed?
» How To Rollback the Current Transaction?
» What Happens to the Current Transaction If a DDL Statement Is Executed?
» What Happens to the Current Transaction If the Session Is Ended?
» What Happens to the Current Transaction If the Session Is Killed?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Sun Jan 31, 2010 12:35 am by Micheal
» Accessing tables of other users in SQL
Sun Jan 31, 2010 12:34 am by Micheal
» Grouping commands in SQL
Sun Jan 31, 2010 12:32 am by Micheal
» Operations on Result Sets in SQL
Sun Jan 31, 2010 12:31 am by Micheal
» Subqueries in SQL
Sun Jan 31, 2010 12:30 am by Micheal
» Joining Relations in SQL
Sun Jan 31, 2010 12:28 am by Micheal
» Delete comand in SQL
Sun Jan 31, 2010 12:27 am by Micheal
» Update command in SQL
Sun Jan 31, 2010 12:26 am by Micheal
» Insert command in SQL
Sun Jan 31, 2010 12:23 am by Micheal