SQL tutorial | Interview questions | Oracle
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How To Commit the Current Transaction?

Go down

How To Commit the Current Transaction? Empty How To Commit the Current Transaction?

Post by Micheal Sun Jan 17, 2010 3:27 am

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.

Micheal
Admin

Posts : 243
Join date : 2010-01-10

http://sql-tutorial.co.cc

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum