How To Commit the Current Transaction in Oracle?
Submitted by: AdministratorIf 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 ('globalguideline.com', 101);
SQL> INSERT INTO ggl_links (url, id)
2 VALUES ('globalguideline.com/html', 110);
SQL> SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 globalguideline.com 07-MAY-06
110 globalguideline.com/html 07-MAY-06</pre>
SQL> COMMIT;
Commit complete.
Submitted by: Administrator
SQL> connect HR/globalguideline
SQL> INSERT INTO ggl_links (url, id)
2 VALUES ('globalguideline.com', 101);
SQL> INSERT INTO ggl_links (url, id)
2 VALUES ('globalguideline.com/html', 110);
SQL> SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 globalguideline.com 07-MAY-06
110 globalguideline.com/html 07-MAY-06</pre>
SQL> COMMIT;
Commit complete.
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Write Date and Time Interval Literals in Oracle? |
☺ | What Happens to Indexes If You Drop a Table? |
☺ | How To Add a New Column to an Existing Table in Oracle? |
☺ | How To Recover a Dropped Table in Oracle? |
☺ | What Happens If Variable Names Collide with Table/Column Names? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |