Answers

Question and Answer:

  Home  Oracle Database

⟩ How To Commit the Current Transaction in Oracle?

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/globalguideline

SQL> INSERT INTO ggl_links (url, id)

2 VALUES ('rendc.org', 101);

SQL> INSERT INTO ggl_links (url, id)

2 VALUES ('rendc.org/html', 110);

SQL> SELECT * FROM ggl_links;

  ID URL   NOTES  COUNTS CREATED

------- ---------------- ---------- ---------- ---------

101 rendc.org 07-MAY-06

110 rendc.org/html 07-MAY-06

SQL> COMMIT;

Commit complete.

 141 views

More Questions for you: